ASPxClientPopupControlBase.PerformCallback(parameter) Method
Sends a callback to the server and generates the server-side ASPxPopupControlBase.WindowCallback event, passing the specified argument to it.
#Declaration
PerformCallback(
parameter: string
): void
#Parameters
Name | Type | Description |
---|---|---|
parameter | string | A string value that is any information that needs to be sent to the server-side ASPx |
#Remarks
The PerformCallback method allows you to go to the server asynchronously, and perform some server-side processing using AJAX-based callback technology. Use the method’s parameter parameter to pass the required information to the client side as a string of arguments (for instance, in the “Name = Value;” form).
Note
The server generates the popup window’s content when you use the Perform
The PerformCallback method posts back to the server, using the callback technology, and generates a server-side ASPxPopupControlBase.WindowCallback event. The method’s parameter argument is passed to the ASPxPopupControlBase.WindowCallback event’s handler as the CallbackEventArgsBase.Parameter property. So, you can perform necessary server-side actions in the event’s handler based upon the values of the passed arguments.
Note
- You can also use the ASPx
Client and ASPxPopup Control Base. Begin Callback Client client events to perform client actions before and after callback is processed.Popup Control Base. End Callback - For the ASPx
Popup , this method is in effect only for the default popup window (when the ASPxControl Popup collection is empty). If this collection is not empty, use the ASPxControl. Windows Client method instead.Popup Control. Perform Window Callback
#Example
<dx:ASPxPopupControl ID="PopupControl" ClientInstanceName="ClientPopupControl" ...>
<ContentCollection>
...
</ContentCollection>
<FooterTemplate>
<dx:ASPxButton ID="UpdateButton" runat="server" Text="Update Content" AutoPostBack="False"
ClientSideEvents-Click="function(s, e) { ClientPopupControl.PerformCallback(); }"/>
</FooterTemplate>
</dx:ASPxPopupControl>