System.Web.UI.ClientScriptManager.RegisterHiddenField Method

Registers a hidden value with the System.Web.UI.Page object.

Syntax

public void RegisterHiddenField (string hiddenFieldName, string hiddenFieldInitialValue)

Parameters

hiddenFieldName
The name of the hidden field to register.
hiddenFieldInitialValue
The initial value of the field to register.

Remarks

The ClientScriptManager.RegisterHiddenField(string, string) method creates a hidden <input> element on the rendered HTML page.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0