To Transfer data from one page to another through Cookies, URL Rewriting and Session object using ASP.net
-
hi all, i m new to web d3velopment and ASp.net can anyone please guide me how to transfer data fromone page to another through Cookies, Session object and url Rewriting. thnax Faisal VH.
i m faisal
-
hi all, i m new to web d3velopment and ASp.net can anyone please guide me how to transfer data fromone page to another through Cookies, Session object and url Rewriting. thnax Faisal VH.
i m faisal
Creating session variable to be used later on. Session.Add("userID","420") to use this session variable in another page. This is how we can access. string ID=Session["userID"].ToString(); Response.Redirect"Page2.aspx?firstName=faisal"); //this is how we pass value through URL string name=Request.QueryString["firstName"].ToString(); //Accessing the value in another page