Share via


DataViewWebPart.RaisePostBackEvent Method

Called by ASP.NET when this Web Part does a postback to itself.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub RaisePostBackEvent ( _
    eventArg As String _
)
'Usage
Dim instance As DataViewWebPart
Dim eventArg As String

instance.RaisePostBackEvent(eventArg)
public void RaisePostBackEvent(
    string eventArg
)

Parameters

Implements

IPostBackEventHandler.RaisePostBackEvent(String)

Remarks

The eventArg string is comprised of a series of commands that fall into three categories:

  • Commands that set the values of parameters, either XSL view parameters or datasource client parameter bindings.

  • Commands that specify that a part to part connected event has fired

  • Commands that specify dspq-filter or dspq-sort expressions.

All commands have the form: < command-name >={<value>}. For example, the command, followed by the equals sign, and then the value, delimited by curly braces. Each command is delimited by a semicolon.

  • Parameter values for the eventArg string take the following forms:

    • Parameter value settings, in the form param-name ={value}. The values are stored in a dictionary keyed by the parameter name.

    • __connect settings, in the form __connect={<value>}

    • __dspq-sort settings, in the form __dspq-sort={fieldname,[a|d];…} For example, the fieldname followed by a comma and by either an "a" or a "d." A semicolon and more sort parameters are optional.

See Also

Reference

DataViewWebPart Class

DataViewWebPart Members

Microsoft.SharePoint.WebPartPages Namespace