ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
Can session variables be accessed from code-behind?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Can session variables be accessed from code-behind?
Answer
# 1
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 ?    11 Yes 3 No
Swapna
 
  Re: Can session variables be accessed from code-behind?
Answer
# 2
" 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 ?    7 Yes 8 No
Gggg
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
What are Themes? What is their use ?  1
What command line used to generate Runtime callable wrapper. CTS2
Define ViewState and how can it be used?  3
can we store textbox and com components in viewstate? Microsoft2
What is reflection and disadvantages of reflection ? Microsoft1
what is purpose of xml control in standard controls of asp.net  1
What is boxing and how it is done internally? Microsoft1
What is a transaction? a) A banking term. b) A concept used to describe a step in the business process. c) A combination of DML steps that must succeed or the data is retuned to its initial state. d) A combination of DDL steps that must succeed or the data is retuned to its initial state. Syntax-Softtech3
What is Assert Method ?  2
If cookies is disabled in client browser will session work ? Satyam3
What is the difference between and ActiveX dll and control ? Microsoft1
what is Repeater Control, When it is used,How it is used, what type of template is used for repeater control? iSoft6
What is the purpose of each of the validation controls provided by ASP.NET?  1
What Name space does the web page belon in the .net framework class hierarchy? Wipro1
What does assemblyinfo.cs file consist of? Accenture1
How do you register the .Net Component or Assembly? Accenture2
Define an assembly?  6
How to Page Execute in asp.net(inside browser) Wipro1
Difference between datareader and dataset ? Microsoft2
what is webpart? what r the parts in this webpart (zone)  1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com