DataFormWebPart.DoesPostbackEqualEvent Method
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
Syntax
'Declaration
Protected Friend Function DoesPostbackEqualEvent ( _
postbackValue As String, _
eventName As String, _
checkForEqualsBracket As Boolean, _
<OutAttribute> ByRef modifiedCommandStr As String _
) As Boolean
'Usage
Dim postbackValue As String
Dim eventName As String
Dim checkForEqualsBracket As Boolean
Dim modifiedCommandStr As String
Dim returnValue As Boolean
returnValue = Me.DoesPostbackEqualEvent(postbackValue, _
eventName, checkForEqualsBracket, _
modifiedCommandStr)
protected internal bool DoesPostbackEqualEvent(
string postbackValue,
string eventName,
bool checkForEqualsBracket,
out string modifiedCommandStr
)
Parameters
postbackValue
Type: System.StringThe postback value to check.
eventName
Type: System.StringThe event name to check against the postbackValue.
checkForEqualsBracket
Type: System.Booleantrue to check the equal sign (=) and the braces ({/}); otherwise, false.
modifiedCommandStr
Type: System.StringWhen 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.
Remarks
The modifiedCommandStr parameter is set to an empty string if postbackValue does not contain eventName or the checkForEqualsBracket parameter is false.