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 |
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?
How can u sort strings in array where strings are passed to method as arguments.
can we transfer data from one page to another page using viewstate if so how?if not y?
What is the difference between <%#%> and <%=%>?
What’s the difference between asp.net web forms and asp.net mvc?
Why viewstate is used in asp.net?
What is difference between session and cookies?
What is asp net theme?
define silverlight and advantages ?
Explain the use of dataadapter.
What is ipostback?
How do you hide the columns?