Passing Values between ASP.NET Web Forms
http://www.dotnetbips.com/displayarticle.aspx?id=79

解决方案 »

  1.   

    Request.QueryString[]
    Session[]
    Server.Transfer() // 麻烦点。
      

  2.   

    webform1内
    Session["ID"]=TextBoxID.text;
    ...webform2中
    if (Session[ID]!=null)
        TextBox1.text=Session["ID"].tostring();
      

  3.   

    webform1
    use
    public void function(.......)
    {
        Response.Redirect("WebForm2.aspx? id="+param);//param is you variable
    }
    or you can also use session or cookie;
    Session["flag"]=param;WebForm2
    string str=Request["id"].ToString();//the id is that in Response.Redirect   
                                          // ("WebForm2.aspx? id="+param);
    or string str=Session["flag"]and the Request["id"] equal to Request.QueryString["id"];