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
What is the difference between session and viewstate?
What are Caching techniques in .NET
How about the security in Activex DLL and Activex EXE ?
Can you change a master page dynamically at runtime? How?
What events will occur when a page is loaded?
What is the main differences between asp and asp.net?
What is the difference between globalization and localization?
How you will improve web application performance?
Why session management is required?
What is the use of global.asax file?
What is the default timeout for a cookie?
What are demand-paging and pre-paging?
What is the basic difference between asp and asp.net?
In ViewState How much lifespan items stored?
Explain the working of passport authentication.