解决方案 »

  1.   

    Request.Querystring["CustomerID"]
    Request.Params["CustomerID"]
      

  2.   

    Quote: 引用 1 楼 sibiyellow 的回复:

    Request.Querystring["CustomerID"]
    Request.Params["CustomerID"][/quote
    获取之后值给谁啊
      

  3.   

    string customerID=Request.Params["CustomerID"]
      

  4.   

    文本框输入用Session获取文本框数据
    <asp:TextBox ID="txtUid" 
                    runat="server" Width="105px" Font-Size="9pt"></asp:TextBox>//文本框输入用户名
     <asp:TextBox ID="txtPwd" runat="server" Width="105px" 
                    TextMode="Password" Font-Size="9pt"></asp:TextBox>//文本框记录密码
    //aspx.cs文件使用Session记录用户名密码
     int i = this.checkLogin(txtUid.Text, txtPwd.Text);
                if (i > 0)
                {
                    Session["UserName"] = this.txtUid.Text;
                    Session["PassWord"] = this.txtPwd.Text;
                    Page.Response.Redirect("Index.aspx");
                }
                else
                {
                    Response.Write("<script lanuage=javascript>alert('用户名称或密码错误!');location='javascript:history.go(-1)'</script>");
                }//如果没有文本框控件用什么录入数据呢?
      

  5.   

    记录登录名就可以控制页面登录了?
    如: protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UserName"] == null)//如果没有用户登录就跳转的主页面
            {
                Response.Redirect("Index.aspx");
            }
          //下面是加载页面程序
     }//给分的问题没关系,你能做好就可以了