3
Reply

How many ways are there for a page to pass something/data to another page?

Ahsan Siddique

Ahsan Siddique

7y
2.1k
2
Reply

    Response.Redirect | Cookies | Application Variables | HttpContext

    You can pass data from one page to another page through following way1- Response.RedirectSET: Response.Redirect("Defaultaspx?name=Tripat"); GET: string Name = Request.QueryString["name"];2-CookiesSET : HttpCookie cookName = new HttpCookie("Name"); cookName.Value = "Tripat"; GET :string name = Request.Cookies["Name"].Value;3- Application VariablesSET : Application["Name"] = "Tripat"; GET :string name = Application["Name"].ToString();

    quesrystring,cokies,session,webstorage