What are benefits and Limitation of using Hidden fields

Q

What are benefits and Limitation of using Hidden fields ?

✍: Guest

A

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="HiddenValue" type="hidden" value="Initial Value" runat="server"NAME="HiddenValue">

2007-10-23, 4210👍, 0💬