if (selectStr == "是") 不可以这样,我该怎么做!
string selectStr = "select putup from book_scheck where bookname='" + Request["bookname"] + "'";SqlCommand myCommand0 = new SqlCommand(selectStr, myConnection0);
myConnection0.Open();
myCommand0.ExecuteScalar();
//Response.Write(selectStr );
myConnection0.Close();
if (selectStr == "是")
{
Button2.Enabled = false;
}
putup里的值 取出来可能是 “是” 如果是 按钮就不能用了