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

Is it possible to apply themes to an asp.net application? If yes, then how?

1011


Can we use html in asp.net?

929


How can you enable impersonation in the web.config file?

1143


Explain about asp.net state management?

1021


What is the difference between union and structure?

955


What does it mean your session has timed out?

981


How can you ensure a permanent cookie?

1005


Explain about asp.net caching?

1035


Why we are using mvc instead of asp.net? : Asp.Net MVC

1043


What is server side session?

1003


What is query string with example?

964


Why we use asp.net for website development?

898


What is windows active directory authentication?

1052


What is redirectpermanent in asp.net?

1062


About CLR, reflection and assemblies?

1956