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 97   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 98   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




Question 99   What are different ways to maintain state

Http protocols are by default stateless. but we can maintain state by the following methods

on server side

1) session objects
2) application objects
3) cache
4) context

on client side

1) cookies
2) viewstate
3) hidden fields



Question 100   What are benefits and limitation of using hidden fields

Advantages

1) they are stored at the client side which will doesn’t require any server resource
2) it is supported on all browsers
3) they are very easy to use

disadvantages

1) we should not store sensitive information on hidden fields because they can be tampered
2) since they are stored on client side page size will be increased. this may cause slow page loading
3) we cannot store complex objects on a hidden field



Question 101   What is viewstate

Http protocol is by default stateless. asp.net uses viewstate to display the submitted values after a post back which was a difficult task in classic asp. a viewstate is an encrypted string stored on the client side. large viewstate can affect page performance



Question 102   What are benefits and limitation of using viewstate

Advantages

they are stored on a hidden field at client side. no server resources are required to store viewstate
almost all browsers support hidden fields so cross browser compatibility
very easy to implement. no coding is required to restore the values after postback

disadvantages

large viewstate will increase the page size. this may affect page response time.
even though they are hashed, viewstate can be tampered. this can create a potential security issue.
viewstates are by default available within the same page itself.




 Rate this page
     
 45 votes , average 3 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