Sunday 1 July 2012

ASP.NET Hidden Field

Hidden Field is used to keep information on a web page that is not to displayed on the client side user.Hidden field is normally used to keep state information of web page just like view state,session state and cookies are used to maintain state information but there are some places where these controls are not available then there we use a hidden field control.Note that we can access the value of hidden field control at client side that way we does not keep ant sensitive information in the hidden field.


<asp:HiddenField ID="HiddenField1" runat="server" />


Some Commonly Used Properties For Hidden Field
Value Property:
You can get or set value to hidden field.


ValueChanged Event:
This event fires when the value of the control changed.

1 comment: