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 difference between session and viewstate?

966


What are Caching techniques in .NET

1063


How about the security in Activex DLL and Activex EXE ?

2282


Can you change a master page dynamically at runtime? How?

936


What events will occur when a page is loaded?

1043


What is the main differences between asp and asp.net?

1092


What is the difference between globalization and localization?

986


How you will improve web application performance?

1045


Why session management is required?

1020


What is the use of global.asax file?

1067


What is the default timeout for a cookie?

1061


What are demand-paging and pre-paging?

998


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

1037


In ViewState How much lifespan items stored?

1077


Explain the working of passport authentication.

968