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
How many types cache in asp net?
Name the tools or API for developing or testing web api?
What are the session variables?
What is HTTPModule and HTTPcontext? What is the use of each?
What is the difference between client-side and server-side validations in ASP.NET?
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
what is AutoEventWireUp and what is the use of This property explain in details?
Define the term Web Garden?
Using code explain Configuration Management
Is asp.net free?
What is web api config?
Which method do you use to kill explicitly a users session?
What is considered a service provider?
Why would a company use an application service provider?
What are custom controls?