ControlsHelper.GetPostBackEventReference Method (Control, PostBackOptions, Boolean, Boolean, Control) |
Gets the postback event reference to the given control.
Namespace: CMS.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 12.0.0
Syntax public static string GetPostBackEventReference(
Control control,
PostBackOptions options,
bool registerForEventValidation,
bool registerAsyncPostbackInUpdatePanel,
Control locationControl = null
)
Parameters
- control
- Type: System.Web.UI.Control
Control - options
- Type: System.Web.UI.PostBackOptions
Options - registerForEventValidation
- Type: System.Boolean
Indicates if the event reference should be registered for validation - registerAsyncPostbackInUpdatePanel
- Type: System.Boolean
If true registers async postback in update panel, otherwise registers full postback - locationControl (Optional)
- Type: System.Web.UI.Control
Optional control used as reference for postback source. Postback target can be different than postback source.
Return Value
Type:
StringSee Also