谁能帮助?
在此以下的编码,我得到这个错误"字符串不是一个有效的布尔承认"的地方 - "如果(Convert.ToBoolean(条件="<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();
}
}