[CLOSED] How to display child window outside Parent window

  1. #1

    [CLOSED] How to display child window outside Parent window

    1)I have dynamically generated a window(W1) in A.aspx page and loading B.aspx page inside W1.Now there is a window(W2) that pops out inside B.aspx. But W2 is getting displayed inside W1 only. I want it displayed outside W1.

    2)All the mesageBox of page B.aspx r displayed in side W1 .But I want all the messageBoxes to be displayed outside W1.

    Is it possible in coolite?
    Last edited by geoffrey.mcgill; Jul 07, 2010 at 2:47 AM.
  2. #2

    RE: How to display child window outside Parent window

    Hi,

    If you use IFrame mode then it is impossible because iframe is page (or sandbox) which doesn't pass controls outside
    You can try Merge mode. Merge mode merged page with parent markup. This mode has some limitations (child page should not contains form tag if the parent page has the form, also you cannot use direct events on the child page or direct methods which defined in the child page (but you can use direct methods of the parent page))

    Please see the sample

    Parent page
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    
    <!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">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" />
            
            <ext:Panel runat="server">
                <AutoLoad Url="Child.aspx" Mode="Merge" />
            </ext:Panel>
        </form>
    </body>
    </html>
    Child page
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" RenderScripts="None" RenderStyles="None" />
        <ext:Window ID="Window1" runat="server" Height="200" Width="200" Title="Window" Hidden="false">
        </ext:Window>
    </body>
    </html>

Similar Threads

  1. Replies: 6
    Last Post: Feb 15, 2012, 4:15 PM
  2. Replies: 7
    Last Post: Feb 09, 2012, 11:17 AM
  3. Replies: 0
    Last Post: Jul 28, 2009, 3:53 PM
  4. Replies: 1
    Last Post: Apr 01, 2009, 12:24 PM
  5. display issue on Parent/Child window
    By egodoy in forum 1.x Help
    Replies: 1
    Last Post: Mar 24, 2009, 5:02 PM

Posting Permissions