System.Web.UI.Page.RegisterHiddenField Method

Allows server controls to automatically register a hidden field on the form. The field will be sent to the System.Web.UI.Page object when the System.Web.UI.HtmlControls.HtmlForm server control is rendered.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.Obsolete]
public virtual void RegisterHiddenField (string hiddenFieldName, string hiddenFieldInitialValue)

Parameters

hiddenFieldName
The unique name of the hidden field to be rendered.
hiddenFieldInitialValue
The value to be emitted in the hidden form.

Remarks

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0