Skip to content

DevExpress-Examples/asp-net-web-forms-popup-change-visibility

Repository files navigation

Popup Control for ASP.NET Web Forms - How to show and hide a pop-up window on the server side

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.

Change the visibility of a pop-up window on the server

Overview

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

Files to Look At

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)