DataSet result = new DataSet();
result = new Class1().hsggetdata(sql);
// result = new TestOnline.Class1().hsggetdata(sql);
if (result != null)
{
if (result.Tables[0].Rows.Count > 0)
{
Session["username"] = TextBox2.Text.ToString().Trim();
Session["role"] = result.Tables[0].Rows[0]["cx"].ToString().Trim();
Response.Redirect("default.htm");
}
else
{
Response.Write("<script>javascript:alert('对不起,用户名或密码不 正确!');</script>");
}
}
else