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 basic difference between asp and asp.net?
Using code explain Configuration Management
When cookie will expire?
Which class is used to send an email message from an ASP.NET Web page?
Can we make activex dll also ti execute in some process as that of client ? How can we do?
What is anonymous authentication?
Can you use c# without .net?
What is datagrid asp.net?
How do I open an ashx file in windows 7?
What are the events that happen when a client requests an asp.net page from iis server?
Which object wraps the state or data of a user?
Will session work if cookies is disabled?
Define globalization and localization.
What are the types of validation in asp net?
What is a 404 redirect?