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 7   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 8   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 9   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 10   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.



Question 11   What are benefits and limitations of using hidden frames

Advantages

we can access data stored on different hidden frames
more than one data field can be cached in a hidden frame

disadvantages

not all browsers support hidden frames
hidden frame data can be tampered. this can create a potential security issue.



Question 12   What are benefits and limitations of using cookies

Advantages

cookies are stored at the client side, so no server resources are required.
persistent cookies will be alive even after the user closes the browser.

disadvantages

cookies can be disabled at the browser.
cookies can be tampered. this can create a potential security issue.
large information cannot be stored on cookies since they have a size limit




 Rate this page
     
 27 votes , average 2 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