This example demonstrates how to change the Popup Control's visibility on the server. Use this approach to process data on the server before users open and/or after they close a pop-up window. Otherwise, we recommend that you open and hide the pop-up window on the client to reduce server round trips.
Set the ASPxPopupControl's server-side ShowOnPageLoad property value to true
to display the default popup window at the client. If the popup control has multiple popup windows, use a PopupWindow's server-side ShowOnPageLoad property to specify visibility of this window at the client.
In this example, the Popup Control has a single window that contains a textbox and the OK and Cancel buttons. The control updates its ShowOnPageLoad property value as follows:
- Sets to
true
after you click the Edit... button on a form - Sets to
false
after you click the OK button on the pop-up window
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)