1
Answer

cannot implicitly convert type 'string' to 'bool'

K Atkins

K Atkins

15y
6.5k
1

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)