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

Define a multilingual website?

971


Explain the differences between managed and unmanaged code?

1046


What are triggers of an updatepanel?

972


Can you set which type of comparison you want to perform by the comparevalidator control?

905


Where do the cookie state and session state information be stored?

930


What is the maximum timeout we can set for Cookies?

991


What is .net framework and what are the main components of it?

843


Describe the events in the life cycle of a web application.

1087


What is difference between rest and soap?

1112


What is razor? : asp.net mvc

1041


What is ispostback method in asp.net?

1032


What is the purpose of master page?

915


How is mvc different from asp.net? : Asp.Net MVC

1052


How does a content page different from a master page?

1041


How you will manage the state of ASP.NET controls?

1064