Google.com is not showing in window

  1. #1

    Google.com is not showing in window

    Hi,

    I am using the following code. Google.com is not showing in window. Ext.net is showing properly. Why google.com is not showing.


    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
    
    <%@ 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">        
            <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            Window win = new Window()
            {
                ID = "Window1",
                Title = "Ext.NET",
                Width = Unit.Pixel(1000),
                Height = Unit.Pixel(600),
                Modal = true,
                AutoRender = false,
                Collapsible = true,
                Maximizable = true,
                Hidden = true,
                Loader = new ComponentLoader
                {
                    Url = "http://www.google.com",
                    Mode = LoadMode.Frame,
                    LoadMask =
                    {
                        ShowMask = true
                    }
                }
            };
    
            this.Form.Controls.Add(win);
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Load External Website into Window - Ext.NET Examples</title>
        <link href="/resources/css/examples.css" rel="stylesheet" />
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            
            <h1>Load External Website into an &lt;ext:Window></h1>
    
            <p>Load an external url into a Window using the AutoLoad property. 
                All Properties for the &lt;ext:Window> are set during the Page_Load Event.</p>
    
            <ext:Button runat="server" Text="Show Window" Icon="Application">
                <Listeners>
                    <Click Handler="#{Window1}.show(this);" />
                </Listeners>
            </ext:Button>
        </form>
    </body>
    </html>
    Thanks
  2. #2
    Google blocks <iframe> loading of itself. A Google search would reveal the answer to this question.
    Geoffrey McGill
    Founder
  3. #3
    Yes Thanks,

    But there is not any other solution.

Similar Threads

  1. Replies: 3
    Last Post: Aug 11, 2011, 11:07 AM
  2. Replies: 0
    Last Post: May 30, 2010, 6:56 PM
  3. How to Adding Google Maps in Panel or Window
    By anderpass in forum 1.x Help
    Replies: 3
    Last Post: Nov 06, 2009, 11:43 AM
  4. Bug when showing a window maximized
    By Jurke in forum Bugs
    Replies: 0
    Last Post: Oct 29, 2008, 12:56 PM
  5. [CLOSED] ext Window Showing Problem
    By yaser82 in forum 1.x Help
    Replies: 4
    Last Post: Oct 07, 2008, 6:10 PM

Posting Permissions