System.Web.UI.Adapters.PageAdapter.RenderPostBackEvent Method

Renders a postback event into the response stream as a hyperlink, including the encoded and possibly encrypted view state, an event target and argument, a previous-page parameter, and an access key.

Syntax

public virtual void RenderPostBackEvent (System.Web.UI.HtmlTextWriter w, string target, string argument, string softKeyLabel, string text, string postUrl, string accessKey)

Parameters

w
Documentation for this section has not yet been entered.
softKeyLabel
Documentation for this section has not yet been entered.
target
The string value holding the postback event target name.
argument
The string value holding the argument to pass to the postback target event.
text
The string value of the text to display as the link.
postUrl
The string value holding the URL target page of the postback.
accessKey
The string value used to assign to the accessKey attribute of the created link.

Remarks

The PageAdapter.RenderPostBackEvent(System.Web.UI.HtmlTextWriter, string, string, string, string, string, string) method writes a postback event as a scriptless hyperlink, including the possibly chunked System.Web.HttpUtility.UrlEncode(string) view state, __EVENTTARGET=target, __EVENTARGUMENT=argument, __PREVIOUSPAGE=currentFilePath parameters, and an accessKey="accessKey" attribute.

View state is encrypted if the enableViewStateMac attribute of the <pages> configuration element is set to true.

Requirements

Namespace: System.Web.UI.Adapters
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0