Skip to content

SvetlanaMikheeva/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

[Run Online]

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

About

.NET, ASP.NET Web Forms, Navigation, Layout & Multi-Purpose Controls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ASP.NET 51.1%
  • Visual Basic .NET 24.7%
  • C# 24.2%