I'm new to C#, and this will probably be a simple question. I am trying to do a simple IF statement, based on a DDL selection.
if ( ddl_type.SelectedItem.Text = "COMMERCIAL" ) {
Response.Write(BinNo);
}
When i do this I get the following error:
CS0029: Cannot implicitly convert type 'string' to 'bool'
Can anyone help?
Thanks,
Scott
if ( ddl_type.SelectedItem.Text = "COMMERCIAL" ) {
Response.Write(BinNo);
}
When i do this I get the following error:
CS0029: Cannot implicitly convert type 'string' to 'bool'
Can anyone help?
Thanks,
Scott