Software job search
.net sql interview questions
  The best place for technical interview questions

 
Home.netSql serverAsp.netC#Vb.netAdo.netAjaxMcpd dumpsWord count tool
Asp.net interview questions
 
Question 1   What is event bubbling

Consider an example of a gridview which contains many buttons as child controls. when you click on a button instead of firing button_click event gridview_rowcommand event will be fired. when a parent control has many child controls events fired by the child control are propagated to the parent control. this is known as event bubbling.



Question 2   Which are the various modes of storing asp.net session

Various modes to store objects in asp.net are described below

1) in proc – this is the default mode to store a session object. in this mode session objects will be stored on the same server memory where the site is hosted. this mode is not suitable for web farms where the web site is hosted in multiple servers to perform load balancing. in inproc mode session objects will be lost on iis restart. in proc mode is faster compared to other modes

2) stateserver – in this mode session objects will be stored on a different process/server. this mode is suitable for web farm since the session objects can be shared between webservers.

3) sql server - in this mode session objects will be stored on a sql server database. this mode is suitable for web farms.




Question 3   Difference between asp session and asp.net session

Classic asp sessions will not work when the browser doesn’t support cookies.
also classic asp sessions are stored on the same webserver which is not suitable for a web farm environment. asp.net session cab be stored on a different server



Question 4   Is session_end event supported in all session modes

Session_end event will be fired only if the session state mode is “inproc”



Question 5   What are the precautions you will take in order that stateserver mode work properly

The following precautions should be taken in order that stateserver mode work properly.

1) in stateserver session objects will be stored on a different machine which requires serialization. objects which are serializable can only be stored on a state server

2) stateserver encrypts the objects using the machinekey specified in web.config. it should be same across all the systems

3) iis metabase (\lm\w3svc\2) should be identical across all systems in a web farm



Question 6   What are the precautions you will take in order that sqlserver mode work properly

The following precautions should be taken in order that sqlserver mode work properly.

1) in sqlserver session objects will be stored on a different machine which requires serialization. objects which are serializable can only be stored on a sqlserver state server

2) in sqlserver session mode objects are encrypted using the machinekey specified in web.config. it should be same across all the systems

3) iis metabase (\lm\w3svc\2) should be identical across all systems in a web farm




 Rate this page
     
 23 votes , average 3 out of 5
1 2 3 4 

Reader's opinions -

No comments
Loading

 
.net interview questions
Asp.net interview questions
C# interview questions
Vb.net interview questions
Ado.net interview questions
Ajax interview questions
Wcf interview questions
Wpf interview questions
.net threading interview questions
.net remoting and webservices interview questions
.net caching interview questions
.net oops interview questions
Sharepoint interview questions
Jquery interview questions
Silverlight interview questions
Linq interview questions
Wwf interview questions
Java interview questions
Sql server interview questions
Ssis interview questions
Ssrs interview questions
Data warehousing interview questions
Data mining interview questions
Oracle interview questions
Php interview questions
Design patterns interview questions
Uml interview questions
Mcpd dumps
Pmp practice tests

This site is best viewed with Internet Explorer 7.0 or higher, Firefox 2.0 or higher, Chrome at a minimum screen resolution of 1024x768.
A complete solution to interview questions
free matrimonial website      
web hosting plans |  compare vps hosting plans |  Compare dedicated hosting plans |  Compare linux hosting plans |  Compare cloud hosting plans |  Compare windows hosting plans | 
Hosting reviews |  GoDaddy reviews | 
Support Wikipedia