You can pass values from one page to another by followings..
- Response.Redirect
- Cookies
- Application Variables
- HttpContext
- Response.Redirect
- SET :
- Response.Redirect("Defaultaspx?Name=Pandian");
- GET :
- string Name = Request.QueryString["Name"];
- Cookies
- SET :
- HttpCookie cookName = new HttpCookie("Name");
- cookName.Value = "Pandian";
- GET :
- string name = Request.Cookies["Name"].Value;
- Application Variables
- SET :
- Application["Name"] = "pandian";
- GET :
- string Name = Application["Name"].ToString();
- Refer the full content here : Pass values from one to another
来源: http://www.bubuko.com/infodetail-3090002.html