Can session variables be accessed from code-behind?
Answers were Sorted based on User's Feedback
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 |
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 |
Difference between viewstate, cache, session
What is the difference between excute query and excute nonquery.?
What is the asp.net control toolkit?
Can we handle the error and redirect to some pages using web.config?
What is asp.net with mvc? : Asp.Net MVC
Explain what are webservices?
what are partial classes and their use?
i wand basic interview based questions in asp.net and vb.net
what is the use of asp.net
What is a 1x1 pixel?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What are asynchronous callbacks ?
6 Answers Accenture, BirlaSoft,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)