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

 
Home.netSql serverAsp.netC#Vb.netAdo.netAjaxMcpd dumpsWord count tool
.net interview questions
 
Question 91   What are different types of caching using cache object of asp.net

.net provides three different types of caching mechanisms

1) page level caching – in page level caching the entire page output will be cached. only on the first call the page output will be generated. for subsequent request it will be retrieved from the cache. page level caching is best suitable for static pages

2) page fragment caching or partial-page output caching – in this caching only a portion of the page will be cached. this portion should be a user control with outputcache directive mentioned on it.

3) application caching or data caching – in this caching data will be cached. a best example for data caching will be list of counties. instead of retrieving country data from the database every time we can use data caching approach.



Question 92   How can you cache different version of same page using asp.net cache object

Outputcache directive is used to achieve this functionality. we can specify the cache dependencies using parameters like varybycontrol, varybycustom , varybyheader, varybyparam,varybycontentencoding




Question 93   How will implement page fragment caching

Outputcache directive is used to achieve this functionality. we can specify the cache dependencies using parameters like varybycontrol, varybycustom , varybyheader, varybyparam,varybycontentencoding



Question 94   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 95   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 96   Is session_end event supported in all session modes

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




 Rate this page
     
 31 votes , average 5 out of 5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 

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