WmlControlAdapter.RenderPostBackEvent 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.
Renders a postback event with the control as a target. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
Overloads
RenderPostBackEvent(WmlMobileTextWriter, String, String, Boolean, String, Boolean) |
Renders a postback event with the control as a target. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
RenderPostBackEvent(WmlMobileTextWriter, String, String, Boolean, String, Boolean, WmlPostFieldType) |
Renders a postback event with the control as a target. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
RenderPostBackEvent(WmlMobileTextWriter, String, String, Boolean, String, Boolean)
Renders a postback event with the control as a target. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
protected:
void RenderPostBackEvent(System::Web::UI::MobileControls::Adapters::WmlMobileTextWriter ^ writer, System::String ^ argument, System::String ^ softkeyLabel, bool mapToSoftkey, System::String ^ text, bool breakAfter);
protected void RenderPostBackEvent (System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter writer, string argument, string softkeyLabel, bool mapToSoftkey, string text, bool breakAfter);
member this.RenderPostBackEvent : System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter * string * string * bool * string * bool -> unit
Protected Sub RenderPostBackEvent (writer As WmlMobileTextWriter, argument As String, softkeyLabel As String, mapToSoftkey As Boolean, text As String, breakAfter As Boolean)
Parameters
- writer
- WmlMobileTextWriter
The specified text writer.
- argument
- String
The argument for the action. The argument is included in the postback generated when the user selects the action.
- softkeyLabel
- String
The softkey text.
- mapToSoftkey
- Boolean
Set to true
if mapping to a softkey on the device.
- text
- String
Text defining the link.
- breakAfter
- Boolean
Set to true
if a break element is added after the text field.
Remarks
If the mapToSoftKey
parameter is set to true
, the text of the softkeyLabel
parameter is displayed.
See also
Applies to
RenderPostBackEvent(WmlMobileTextWriter, String, String, Boolean, String, Boolean, WmlPostFieldType)
Renders a postback event with the control as a target. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
protected:
void RenderPostBackEvent(System::Web::UI::MobileControls::Adapters::WmlMobileTextWriter ^ writer, System::String ^ argument, System::String ^ softkeyLabel, bool mapToSoftkey, System::String ^ text, bool breakAfter, System::Web::UI::MobileControls::Adapters::WmlPostFieldType postBackType);
protected void RenderPostBackEvent (System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter writer, string argument, string softkeyLabel, bool mapToSoftkey, string text, bool breakAfter, System.Web.UI.MobileControls.Adapters.WmlPostFieldType postBackType);
member this.RenderPostBackEvent : System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter * string * string * bool * string * bool * System.Web.UI.MobileControls.Adapters.WmlPostFieldType -> unit
Protected Sub RenderPostBackEvent (writer As WmlMobileTextWriter, argument As String, softkeyLabel As String, mapToSoftkey As Boolean, text As String, breakAfter As Boolean, postBackType As WmlPostFieldType)
Parameters
- writer
- WmlMobileTextWriter
The specified text writer.
- argument
- String
The argument for the action. The argument is included in the postback generated when the user selects the action.
- softkeyLabel
- String
The softkey text.
- mapToSoftkey
- Boolean
Set to true
if mapping to a softkey on the device.
- text
- String
Text defining the link.
- breakAfter
- Boolean
Set to true
if a break element is added after the text field.
- postBackType
- WmlPostFieldType
Specifies how the postfield is written.
Remarks
This overload sets the default value for the postback type to Normal. If the mapToSoftKey
parameter is set to true
, the text of the softkeyLabel
parameter is displayed. The following table shows the postback types used for the postBackType
argument.
Type | Description |
---|---|
Normal | The postback contains a name and an encoded argument. |
Submit | The postback contains the control used to submit the form, typically an _EVENTTARGET and a command. |
Variable | The postback contains a name and a variable reference. |
Raw | The postback contains a name and an argument. |