ransfer data from one page to another
-
pls i want to transfer data from one content page to another, i use c# and asp.net 4.0 thanks alot
-
pls i want to transfer data from one content page to another, i use c# and asp.net 4.0 thanks alot
Search State management in Google. Passing data/parameters/values from one aspx page to another aspx page[^]
thatraja
My Dad had a Heart Attack on this day so don't...
Pompeyboy3 here | Nobody remains a virgin, Life screws everyone :sigh: -
pls i want to transfer data from one content page to another, i use c# and asp.net 4.0 thanks alot
you can do that by using session or by sending data as paramter in the request 1-in first page Session["Name"]=; Session["ID"]=; 2- in other page string x=Session["Name"].ToString(); other Soluation 1- in first page Response.redirect("Default2.aspx?Name="++"&id="+); 2-in last Page request.Get("Name"); request.Get("ID");
-
pls i want to transfer data from one content page to another, i use c# and asp.net 4.0 thanks alot
Hi, another method is here to send data on page to another page though cookies.
// Setting cookie :
Response.Cookies["UserName"].Value = "Erhan";
Response.Cookies["UserName"].Expires = DateTime.Now.AddDays(7); // Persists 1 week// Getting cookie :
string username = string.Empty;
if(Request.Cookies["UserName"] != null)
{
username = Server.HtmlEncode(Request.Cookies["UserName"].Value);
} -
you can do that by using session or by sending data as paramter in the request 1-in first page Session["Name"]=; Session["ID"]=; 2- in other page string x=Session["Name"].ToString(); other Soluation 1- in first page Response.redirect("Default2.aspx?Name="++"&id="+); 2-in last Page request.Get("Name"); request.Get("ID");
passing values in query string is a wrong practice as it will be exposed to other users .try delegates and events.you will find lots of article regarding thin in google