Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the basic difference between asp and asp.net?

970


Using code explain Configuration Management

1897


When cookie will expire?

941


Which class is used to send an email message from an ASP.NET Web page?

965


Can we make activex dll also ti execute in some process as that of client ? How can we do?

4676


What is anonymous authentication?

1091


Can you use c# without .net?

933


What is datagrid asp.net?

996


How do I open an ashx file in windows 7?

1010


What are the events that happen when a client requests an asp.net page from iis server?

951


Which object wraps the state or data of a user?

950


Will session work if cookies is disabled?

963


Define globalization and localization.

927


What are the types of validation in asp net?

971


What is a 404 redirect?

997