Page.RegisterHiddenField(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
The recommended alternative is ClientScript.RegisterHiddenField(string hiddenFieldName, string hiddenFieldInitialValue). http://go.microsoft.com/fwlink/?linkid=14202
public:
virtual void RegisterHiddenField(System::String ^ hiddenFieldName, System::String ^ hiddenFieldInitialValue);
public virtual void RegisterHiddenField(string hiddenFieldName, string hiddenFieldInitialValue);
[System.Obsolete("The recommended alternative is ClientScript.RegisterHiddenField(string hiddenFieldName, string hiddenFieldInitialValue). http://go.microsoft.com/fwlink/?linkid=14202")]
public virtual void RegisterHiddenField(string hiddenFieldName, string hiddenFieldInitialValue);
abstract member RegisterHiddenField : string * string -> unit
override this.RegisterHiddenField : string * string -> unit
[<System.Obsolete("The recommended alternative is ClientScript.RegisterHiddenField(string hiddenFieldName, string hiddenFieldInitialValue). http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member RegisterHiddenField : string * string -> unit
override this.RegisterHiddenField : string * string -> unit
Public Overridable Sub RegisterHiddenField (hiddenFieldName As String, hiddenFieldInitialValue As String)
Parameters
- hiddenFieldName
- String
The unique name of the hidden field to be rendered.
- hiddenFieldInitialValue
- String
The value to be emitted in the hidden form.
- Attributes
Remarks
The RegisterHiddenField method has been deprecated. Use the RegisterHiddenField method in the ClientScriptManager class.