ScriptManager.RegisterHiddenField Method (Control, String, String)
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
public static void RegisterHiddenField( Control control, string hiddenFieldName, string hiddenFieldInitialValue )
You use the RegisterHiddenField method to register a hidden field that is compatible with partial-page rendering and that has no Microsoft Ajax Library dependencies. This method registers the hidden field when the control that is registering the field is inside an UpdatePanel control that is being updated. To register a hidden field every time that an asynchronous postback occurs, use the RegisterHiddenField(Page, String, String) overload of this method.
If you want to register a hidden field that does not pertain to partial-page updates, and if you want to register the hidden field only one time during initial page rendering, use the RegisterHiddenField method of the ClientScriptManager class. You can get a reference to the ClientScriptManager object from the ClientScript property of the page.
The RegisterHiddenField method creates a hidden input element on the rendered HTML page.