Export (0) Print
Expand All
Expand Minimize

DataFormWebPart.DoesPostbackEqualEvent Method

SharePoint 2010

Checks whether the specified postback value contains the specified event name.

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

protected internal bool DoesPostbackEqualEvent(
	string postbackValue,
	string eventName,
	bool checkForEqualsBracket,
	out string modifiedCommandStr
)

Parameters

postbackValue
Type: System.String

The postback value to check.

eventName
Type: System.String

The event name to check against the postbackValue.

checkForEqualsBracket
Type: System.Boolean

true to check the equal sign (=) and the braces ({/}); otherwise, false.

modifiedCommandStr
Type: System.String

When this method returns, contains a string that represents the information about the event. This parameter is passed uninitialized.

Return Value

Type: System.Boolean
true if postbackValue contains eventName; otherwise, false.

The modifiedCommandStr parameter is set to an empty string if postbackValue does not contain eventName or the checkForEqualsBracket parameter is false.

Show:
© 2014 Microsoft