Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
cannot implicitly convert type 'string' to 'bool'
K Atkins
Jan 11 2010 4:55 PM
6.5k
Reply
I get the error "cannot implicitly convert type 'string' to 'bool'" with the following code. Can someone please tell me what I need to do? I'm new at this! Thanks!
private
bool ValidateStatusCommit
()
{
string
status
=
ddlStatus
.
Text
;
if
(
status
=
"I"
)
return
true;
else
return
false;
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
difference between framework and arcgitechture
How to implement drag and drop with imagelistbox in c#?