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

  • hiddenFieldName
    Type: System.String

    The name of the hidden field to register.

  • hiddenFieldInitialValue
    Type: System.String

    The initial value of the hidden field.

See also

Reference

SPPageContentManager class

SPPageContentManager members

RegisterHiddenField overload

Microsoft.SharePoint.WebControls namespace