<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="button_iframe.aspx.cs"
    Inherits="ExtAspNet.Examples.iframe.button_iframe" %>

<!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 id="head1" runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <ext:Button ID="Button1" runat="server" EnablePostBack="false" Text="Popup IFrame Window in This Page">
    </ext:Button>
    <br />
    <br />
    <ext:Button ID="Button2" runat="server" EnablePostBack="false" Text="Popup IFrame Window in Parent Page">
    </ext:Button>
    <br />
    <br />
    <ext:Label ID="labResult" CssStyle="font-weight:bold;color:red;" runat="server">
    </ext:Label>
    <br />
    <ext:Window ID="Window1" IconUrl="~/images/16/10.png" runat="server" Popup="false"
        WindowPosition="Center" IsModal="true" Title="Popup Window 1" EnableMaximize="true"
        EnableResize="true" Target="Self" EnableIFrame="true" IFrameUrl="about:blank"
        Height="500px" Width="650px" OnClose="Window1_Close">
    </ext:Window>
    <ext:Window ID="Window2" IconUrl="~/images/16/11.png" runat="server" Popup="false"
        IsModal="true" Target="Parent" EnableMaximize="true" EnableResize="true" OnClose="Window2_Close"
        Title="Popup Window 2" EnableConfirmOnClose="true" CloseAction="HidePostBack"
        EnableIFrame="true" IFrameUrl="about:blank" Height="500px" Width="650px">
    </ext:Window>
    </form>
    <script type="text/javascript">
        function onReady() {
            var window1 = Ext.getCmp('<%= Window1.ClientID %>');
            window1.getTool("close").dom.qtip = "This CloseButton tooltip is set through JavaScript!";
        }
    </script>
</body>
</html>
