hi
i have just started learning ASP.Net..
i'm try to using dropdown list in if condition it gives error message as "Cannot implicitly convert type 'string' to 'bool'"
if (DropDownList1.SelectedItem.Text="buyername" )
{
da = new SqlDataAdapter("select * from buyermaster where buyername like '" + a + "%'", con);
da.Fill(ds);
}