Skip to main content

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 ASPxPopupControlBase.WindowCallback event.

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 PerformCallback method to send a callback to the server.

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

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>

Online Demos

See Also