XhtmlMobileTextWriter.WriteHiddenField 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.
Writes the markup for a hidden field to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
Overloads
WriteHiddenField(String) |
Writes the markup for a hidden field to the output stream using the provided name. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
WriteHiddenField(String, String) |
Writes the markup for a hidden field to the output stream using the provided name and value. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
WriteHiddenField(String)
Writes the markup for a hidden field to the output stream using the provided name. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public:
virtual void WriteHiddenField(System::String ^ name);
public virtual void WriteHiddenField (string name);
abstract member WriteHiddenField : string -> unit
override this.WriteHiddenField : string -> unit
Public Overridable Sub WriteHiddenField (name As String)
Parameters
- name
- String
The name of the hidden field.
Remarks
The WriteHiddenField method is useful for pages where client-side code will add and modify the value of this field for postback, because no initial value is provided.
This method is used primarily by developers of custom mobile page and control adapters.
See also
- HtmlInputHidden
- ASP.NET and XHTML Compliance
- Architectural Overview of Adaptive Control Behavior
- Client Script in ASP.NET Web Pages
Applies to
WriteHiddenField(String, String)
Writes the markup for a hidden field to the output stream using the provided name and value. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public:
virtual void WriteHiddenField(System::String ^ name, System::String ^ value);
public virtual void WriteHiddenField (string name, string value);
abstract member WriteHiddenField : string * string -> unit
override this.WriteHiddenField : string * string -> unit
Public Overridable Sub WriteHiddenField (name As String, value As String)
Parameters
- name
- String
The name of the hidden field.
- value
- String
The value of the hidden field.