PageAdapter::RenderPostBackEvent Method (HtmlTextWriter, String, String, String, String)
Renders a postback event into the response stream as a hyperlink, including the encoded and possibly encrypted view state, and event target and argument.
Assembly: System.Web (in System.Web.dll)
public: virtual void RenderPostBackEvent( HtmlTextWriter^ writer, String^ target, String^ argument, String^ softkeyLabel, String^ text )
Parameters
- writer
- Type: System.Web.UI::HtmlTextWriter
The HtmlTextWriter containing methods to render the target-specific output.
- target
- Type: System::String
The String value holding the postback event target name.
- argument
- Type: System::String
The String value holding the argument to pass to the postback target event.
- softkeyLabel
- Type: System::String
The String value to use as a soft key label.
- text
- Type: System::String
The String value of the text to display as the link.
The RenderPostBackEvent method writes a postback event as a scriptless hyperlink.
Notes to InheritorsWhen you inherit from the PageAdapter class, you can override the RenderPostBackEvent method if a different format is required for the postback event hyperlink or the browser has other unique requirements. For example, some browsers require the hyperlink text to be nonempty if the link is to render. You can also override RenderPostBackEvent if limited resources prevent including the view state as a URL parameter. The RenderPostBackEvent base method does not write an attribute for softkeyLabel.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.