SPPageContentManager.RegisterHiddenField method (Page, String, String)
Registers a hidden input field for the current control, specifying the page, 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 ( _
page As Page, _
hiddenFieldName As String, _
hiddenFieldInitialValue As String _
)
'Usage
Dim page As Page
Dim hiddenFieldName As String
Dim hiddenFieldInitialValue As StringSPPageContentManager.RegisterHiddenField(page, hiddenFieldName, _
hiddenFieldInitialValue)
public static void RegisterHiddenField(
Page page,
string hiddenFieldName,
string hiddenFieldInitialValue
)
Parameters
page
Type: System.Web.UI.PageThe page object 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.