SPPageContentManager.RegisterHiddenField method (Control, String, String)
Registers a hidden input field for the current control, specifying the control, the name of the hidden field, and the value of the hidden field.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub RegisterHiddenField ( _
control As Control, _
hiddenFieldName As String, _
hiddenFieldInitialValue As String _
)
'Usage
Dim control As Control
Dim hiddenFieldName As String
Dim hiddenFieldInitialValue As StringSPPageContentManager.RegisterHiddenField(control, _
hiddenFieldName, hiddenFieldInitialValue)
public static void RegisterHiddenField(
Control control,
string hiddenFieldName,
string hiddenFieldInitialValue
)
Parameters
control
Type: System.Web.UI.ControlThe control that is registering the hidden field.
hiddenFieldName
Type: System.StringThe name of the hidden field to register.
hiddenFieldInitialValue
Type: System.StringThe initial value of the hidden field.