if (Convert.ToBoolean( condition = "<500"))
public void price() { if (Convert.ToBoolean( condition = "<500")) { SqlCommand cmd = new SqlCommand("select pro_img,pro_name,price from product where price='" + price_range + "' and status='A' and type='retail'", con); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds); DataList1.DataSource = ds; DataList1.DataBind(); } }
if (Convert.ToBoolean( condition == "<500"))
if (condition == "<500")
condition
Convert.ToBoolean
if (condition < 500)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)