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...


Can session variables be accessed from code-behind?

Answers were Sorted based on User's Feedback



Can session variables be accessed from code-behind?..

Answer / swapna

Yes. You can access the "Session" dictionary within a code-
behind file just like you would if you were accessing it
from within an line .aspx file.

For example: Session("Name") = "Scott"

Is This Answer Correct ?    16 Yes 3 No

Can session variables be accessed from code-behind?..

Answer / gggg

" YES "

simply take 2 websites

for example in 1st website..... u have a textbox1

on page load()
--------------
Session["name"]=textBox1.Text;

in 2nd website..........

on page load()
-------------

Response.Write(Session["name"]);



definatly u will get the ans ,, whatever u entering in the
textbox1 in 1st website that will displat in 2nd website

Is This Answer Correct ?    12 Yes 10 No

Post New Answer

More ASP.NET Interview Questions

Difference between abstract class and interface

2 Answers   Fidelity,


How do you implement sql caching in asp.net?

0 Answers  


What is SOAP, UDDI and WSDL ?

2 Answers   Infosys, Network, TCS, Wipro,


What are the different authentication modes in the .NET environment?

2 Answers   Veritas,


What are the different methods of session maintenance in asp.net?

0 Answers  


what is the difference between sql 2000 and 2005?

2 Answers   Cognizant,


What are session state modes?

0 Answers  


What is asp.net file?

0 Answers  


How to retrieve user name in case of Window Authentication?

0 Answers  


Explain transparent caching with aop?

0 Answers  


can i inherit one web applications into another web applications in asp.net?

7 Answers  


Can you edit data in the Repeater control?

4 Answers   Siebel Systems,


Categories