May 19, 2016, 10:16 AM
Ext.Net Window problem with loading external website into content frame
Hello to all,
I'm using Ext.Net 4 and C# Code-Behind in ascx.cs-Files. Working with Visual Studio 12 and .Net-Framework 4.5.
I want to load an external Website into a window as Content. When I load the site "http://ext.net" it works. But when I want to load the site "http://web.de" it doesn' t work, because the site can't be load into a Frame: "This content can not be displayed within a frame". How can I solve the Problem?
My ext.net ascx-File:
And my code behind ascx.cs file:
Even when I set the Url-Parameter in code behind instead in ext.net directly:
With http://ext.net or http://www.cnn.com there is no Problem.
Thank you for your answers!
Best regards
I'm using Ext.Net 4 and C# Code-Behind in ascx.cs-Files. Working with Visual Studio 12 and .Net-Framework 4.5.
I want to load an external Website into a window as Content. When I load the site "http://ext.net" it works. But when I want to load the site "http://web.de" it doesn' t work, because the site can't be load into a Frame: "This content can not be displayed within a frame". How can I solve the Problem?
My ext.net ascx-File:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="XXXXX.ascx.cs" Inherits="XXXXXXX" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Window
ID="TestWindow"
Title="Test"
Height="750" Width="750"
Modal="true" AutoRender="false"
Collapsible="true" Maximizable="true" Hidden="true"
runat="server">
<Loader ID="LoaderViewDocument"
runat="server"
AutoLoad="false"
Url="http://web.de"
Mode="Frame">
<LoadMask ShowMask="true" />
</Loader>
</ext:Window>
And my code behind ascx.cs file:
[DirectMethod]
public void DoLoadWindow()
{
this.TestWindow.Hidden = false;
this.TestWindow.LoadContent();
this.TestWindow.Show();
}
Trying it too with loader params in ascx:TriggerEvent="show"
ReloadOnEvent="true"
DisableCaching="true"
ReloadOnEvent="true"
DisableCaching="true"
Even when I set the Url-Parameter in code behind instead in ext.net directly:
this.TestWindow.LoadContent(url);
it doesn' t work with some Url's.With http://ext.net or http://www.cnn.com there is no Problem.
Thank you for your answers!
Best regards