唉,
过程式编程。你把错误信息贴出来吧。不然不好解答。

解决方案 »

  1.   

     protected void Button3_Click(object sender, EventArgs e)
        {
            
            
            SqlConnection scon = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);        SqlCommand scmd = new SqlCommand("select qx from Member where ID='" + TextBox1 .Text  + "' ", scon);
            scon.Open();
            SqlDataReader pp = scmd.ExecuteReader();
           
            if (pp.Read())
            {            Session["QX"] = pp["qx"].ToString();            string aa = Session["QX"].ToString ();
                if (aa == "0")
                    Response.Write(" <script language='javascript'>alert('你没有这个权限!')");
                else
                {
                    Response.Redirect("admin/Admin.aspx");
                }
                pp.Close();
                        }
        }我又修改了代码,没有错误了,但是, 下面的条件设置没起作用,。除了上面这种方法还有其他方式吗,
      

  2.   

    方式有很多种。权限管理一直都是热点话题啊。下面的条件设置没起作用是什么意思?