ASPxClientPopupControlBase.Hide Method
Closes the control’s window.
#Declaration
Hide(): void
#Remarks
Use the Hide method on the client side to hide the control’s window.
#Example
The example illustrates how to return values from the ASPxPopupControl’s ASPxPopupControlBase.ContentUrl page. The ContentUrl page calls the “HidePopupAndShowInfo” function, which is defined on the parent page. The function is called on the client and server sides.
#See Also
- How to manage client-side objects within the control’s content page
- How to return values from the content collection and close the pop-up window on the client or server
- PopupControl - How to pass parameter to Parent Window (from ContentUrl page) and close PopupControl
- PopupContent.aspx.cs
- Default.aspx.cs
- Default.aspx.vb
- PopupContent.aspx.vb
- Default.aspx (C#)
- PopupContent.aspx (C#)
- Default.aspx (VB.NET)
- PopupContent.aspx (VB.NET)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script type="text/javascript">
function OnBtnShowPopupClick() {
popup.Show();
}
function HidePopupAndShowInfo(closedBy, returnValue) {
popup.Hide();
alert('Closed By: ' + closedBy + '\nReturn Value: ' + returnValue);
}
</script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="btnShowPopup" type="button" onclick="OnBtnShowPopupClick();" value="Show Popup" />
<dx:ASPxPopupControl ID="popup" runat="server" ClientInstanceName="popup" ContentUrl="~/PopupContent.aspx"
Width="300px" Height="200px">
</dx:ASPxPopupControl>
</div>
</form>
</body>
</html>