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 ?

Answers were Sorted based on User's Feedback



How do you pass session values from one page to another ?..

Answer / 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

How do you pass session values from one page to another ?..

Answer / hari

Get the value from Login Page where the Session Iniciated Like

Sesstion["UserID"]

and you may use this value on another page

Like

EnteredBy=Convert.Toint64(Session["UserID"])

Is This Answer Correct ?    0 Yes 3 No

How do you pass session values from one page to another ?..

Answer / vimal chauhan

response.redirect("requireform.aspx?"& txtbox1.text)

Is This Answer Correct ?    5 Yes 15 No

How do you pass session values from one page to another ?..

Answer / raja mohamed

request query:
response.redirect("requireform.aspx"?get=txtbox1.text);

requireform.aspx
txtbox2.text=get


server transfer:

dim my as string
m="value"
server.transfer("requireform.aspx"?get=m)
requireform:
dim t as string
t=page.request("m")

Is This Answer Correct ?    11 Yes 34 No

Post New Answer

More ASP.NET Interview Questions

What is MSIL?

4 Answers  


What is the concepts of globalization and localization in .net?

0 Answers  


What is the roll of JIT in asp.net?

7 Answers  


After capturing the SelectIndexChanged event for a ListBox Control, you find that the event handler doesn?t execute. What could be the problem be? a) The AutoEventWireup attribute is set to False b) The AutomaticPostBack attribute is set to False c) The codebehind module is not properly compiled d) The ListBox must be defined WithEvents.

2 Answers   Syntax Softtech,


what are the levels of securities need to be considered for the finincial web application?

1 Answers  


Explain authorization levels in .net ?

0 Answers  


Why we use asp.net for website development?

0 Answers  


How to check null values in dataset ?

6 Answers   Digital GlobalSoft,


Explain Page life cycle

8 Answers   DELL,


Is data edited in the Repeater control?

0 Answers   Siebel,


How is my content secured from unauthorized access?

0 Answers  


What is the difference between ldap and active directory?

0 Answers  


Categories