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
Define a multilingual website?
Explain the differences between managed and unmanaged code?
What are triggers of an updatepanel?
Can you set which type of comparison you want to perform by the comparevalidator control?
Where do the cookie state and session state information be stored?
What is the maximum timeout we can set for Cookies?
What is .net framework and what are the main components of it?
Describe the events in the life cycle of a web application.
What is difference between rest and soap?
What is razor? : asp.net mvc
What is ispostback method in asp.net?
What is the purpose of master page?
How is mvc different from asp.net? : Asp.Net MVC
How does a content page different from a master page?
How you will manage the state of ASP.NET controls?