Skip to content

Add an editor to the popup control's ContentUrl page, get the editor's value, and close a pop-up window on the client or server.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/asp-net-web-forms-popup-control-get-value-from-content-page-and-close-popup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Popup Control for ASP.NET Web Forms - How to return values from the content page and close the pop-up window on the client or server

This example demonstrates how to add an editor to the popup control's ContentUrl page, get the editor's value, and close a pop-up window on the client or server.

Popup ContentUrl page

Overview

On the parent page, create a popup control and specify its ContentUrl property. Add an input element to the page and handle its OnClick event to invoke a pop-up window.

<input id="btnShowPopup" type="button" onclick="OnBtnShowPopupClick();" value="Show Popup" />
<dx:ASPxPopupControl ID="popup" runat="server" ClientInstanceName="popup"
    ContentUrl="~/PopupContent.aspx" .../>

On the ContentUrlPage, create a text box editor and two buttons. Create the HidePopupAndShowInfo function that hides the pop-up window and displays the editor's value in an alert message. You can call that function on the client and server.

function HidePopupAndShowInfo(closedBy, returnValue) {
    popup.Hide();
    alert('Closed By: ' + closedBy + '\nReturn Value: ' + returnValue);
}

Files to Review

More Examples

Does this example address your development requirements/objectives?

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

About

Add an editor to the popup control's ContentUrl page, get the editor's value, and close a pop-up window on the client or server.

Topics

Resources

License

Stars

Watchers

Forks