Used for determining if the specific button caused a postback, in scenarios where MonoSoftware.Web.PageExtension.GetPostBackControl cannot be used, as it enumerates all controls on a page and causes some evetns - like CreateChildControls - to be fired too early.
Namespace: MonoSoftware.MonoX.UtilitiesAssembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)
Syntax
C# |
---|
public static bool IsPostbackCausedByButton(
string buttonId
) |
Visual Basic |
---|
Public Shared Function IsPostbackCausedByButton (
buttonId As String
) As Boolean |
Visual C++ |
---|
public:
static bool IsPostbackCausedByButton(
String^ buttonId
) |
F# |
---|
static member IsPostbackCausedByButton :
buttonId : string -> bool
|
Parameters
- buttonId
- Type: System..::..String
Button ID, or a regular expression tha tincludes a button's container and other elements to uniquely identify the button in the page hierarchy.
Return Value
Type:
BooleanTrue if the button with the ID passed in as a parameter caused a current postback, false otherwise.
See Also