What are benefits and Limitation of using Hidden fields?

 Posted by ArticlesMaint on 9/17/2009 | Category: ASP.NET Interview questions | Views: 6007

Following are the benefits of using Hidden fields: -

• They are simple to implement.
• As data is cached on client side, they work with Web Farms.
• All browsers support hidden field.
• No server resources are required.

Following are limitations of Hidden field: -

• They can be tampered creating a security hole.
• Page performance decreases if you store large data, as the data are stored in pages itself.
• Hidden fields do not support rich structures as HTML hidden fields are only single valued. Then you have to work around with delimiters etc to handle complex structures.
Below is how you will actually implement hidden field in a project

<input id="Hidden Value" type="hidden" value="Initial Value" run at="server" NAME="Hidden Value">

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response