protected void Button1_Click(object sender, EventArgs
e)
{
string a
=
Page.Request["ID"];
Response.Redirect("dy.ascx?name=a");
}
接收
protected void Page_Load(object sender, EventArgs
e)
{
Label1.Text = Request.QueryString["name"];
}
或者
protected void Button1_Click(object sender, EventArgs
e)
{
Session["id"]
=
Page.Request["ID"];
Response.Redirect("dy.ascx");
}
接收
protected void Page_Load(object sender, EventArgs
e)
{
Session["id"] =
Label1.Text.ToString();
}
原文:http://www.cnblogs.com/914556495wxkj/p/3600426.html