Skip to main content

PopupControlCommandEventArgs.CommandSource Property

Gets an object representing the control which forced a postback.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public object CommandSource { get; }

Property Value

Type Description

A Object representing the control which forced a postback.


The ASPxPopupControlBase.PopupWindowCommand event fires when a control residing on a popup window’s header or footer template raises the Command event. For instance, this can occur when the Button control residing on a template for a popup window’s header is clicked. In this instance, the CommandSource property returns the clicked Button control. This can be used to identify the control that forced a postback, if there are several controls residing on a template.

Note that you must specify a popup window’s specific template to display controls within it. refer to the PopupWindow.HeaderTemplate (ASPxPopupControlBase.HeaderTemplate) and PopupWindow.FooterTemplate (ASPxPopupControlBase.FooterTemplate) property descriptions for more details.

See Also