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 viewstate is being formed?
Define page fragment caching?
What is web api vs wcf?
Explain about Application and Session Events ?
What is difference cookie and session?
What are the asp.net list controls and difference between them?
What is difference between web api and web services?
What are the different properties of server control that exists?
Write a code for sending an email from asp.net application.
What are session state modes? List some of the important session state modes of asp.net.
How to rename a table using sql queries?
How to disable disable browser's Back button in asp.net (JavaScript)?
Explain Features in ASP.NET
Explain the concept of event bubbling in ASP.NET?
What is variable and constant in .net programming language?