How do you pass session values from one page to another ?
Answer Posted / pravesh chourasia
1.In first page set session variable. e.g.
Session ["Name"] = "Pravesh";
Here "Name" is name of session variable and "Pravesh" is
the value of session variable "Name".
2. In next page get the sesion variable. e.g.:-
string myName=Session["Name"].ToString();
Is This Answer Correct ? | 98 Yes | 28 No |
Post New Answer View All Answers
Explain how is a property designated as read-only?
Name the two properties are on every validation control?
What is the difference between user control and custom control?
How do you design a website with multilingual support in ASP.NET ?
What is master page in dtp?
What is the purpose of url encoding?
How do cookies work? Give an example of their abuse.
How does session state work in asp.net?
What is the procedure to create the environment for asp.net? : asp.net mvc
How do u optimize a query in asp.net?
What is difference between asp.net and asp.net mvc? : Asp.Net MVC
how can create login from create and written conde in asp.net
What is Bundling and Minification in MVC?
What are early binding and late binding.
Does asp.net still recognize the global.asa file?