1
Reply

cannot implicitly convert type 'string' to 'bool'

K Atkins

K Atkins

Jan 11 2010 4:55 PM
6.5k

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;
}

Answers (1)