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
Is it possible to apply themes to an asp.net application? If yes, then how?
Can we use html in asp.net?
How can you enable impersonation in the web.config file?
Explain about asp.net state management?
What is the difference between union and structure?
What does it mean your session has timed out?
How can you ensure a permanent cookie?
Explain about asp.net caching?
Why we are using mvc instead of asp.net? : Asp.Net MVC
What is server side session?
What is query string with example?
Why we use asp.net for website development?
What is windows active directory authentication?
What is redirectpermanent in asp.net?
About CLR, reflection and assemblies?