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 do you deploy your asp.net application?
What is a proxy in web service?
Explain about the .NET framework?
What is the use of worker process in asp.net?
What is event in asp.net?
Which is better session or viewstate?
Who generates session id?
Define what is razor? : asp.net mvc
Explain the significance of routing? : asp.net mvc
Is web config mandatory?
What are the security types in asp.net?
there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?
What is a pixel url?
Difference between response.redirect and server.transfer?
Why asp.net is used?