this.sb.Append("id =1 & keys" + this.TextBox1.Text);是不是要这样子
this.sb.Append("id =1 & keys=" + this.TextBox1.Text);

解决方案 »

  1.   

    没发现什么问题啊??我照着lz的代码写了2个页面,没发现问题啊
    ---------- page 1--------------------------
        System.Text.StringBuilder sb;
        protected void Page_Load(object sender, EventArgs e)
        {    }
        protected void btn_Click(object sender, EventArgs e)
        {
            this.sb = new StringBuilder("Default.aspx?");
            this.sb.Append("id =1 & keys=" + this.TextBox1.Text);
            Response.Redirect(sb.ToString());
        }
    ---------------- page 2------------------
     string id;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.id = Request.QueryString["id"];
            }
        }
    可以正常执行啊!!!