PDA

View Full Version : [CLOSED] FormPanel and FileUploadField: Access denied in IE9



softmachine2011
Sep 12, 2012, 7:45 AM
Hi,

In Ext.NET 2.x FormPanel not rendering the component tag "form".

Running submit, dynamically generates the form and insert the components inside, sending data to the server.

If the form is inserted through a partial view result in an iframe or script injection, selecting a file and try to send the data, causing "Access denied."

Is there any way for the FormPanel generate html code as in Ext.NET 1.x?

Greetings,

Daniil
Sep 12, 2012, 10:45 AM
Hi,

I am unable to reproduce an "Access denied" error running the sample below.

Is it reproducible on your side with this example? If not, could you provide your sample?

Parent Page

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>

<html>
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<ext:ResourceManager runat="server" />

<ext:Panel runat="server" Height="200" Width="300">
<Loader runat="server" Url="Test.aspx" Mode="Frame" />
</ext:Panel>
</body>
</html>


Child Page

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>

<html>
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<ext:ResourceManager runat="server" />

<ext:FormPanel runat="server">
<Items>
<ext:FileUploadField runat="server" FieldLabel="Choose a file" />
</Items>
<Buttons>
<ext:Button runat="server" Text="Submit">
<Listeners>
<Click Handler="this.up('form').submit();" />
</Listeners>
</ext:Button>
</Buttons>
</ext:FormPanel>
</body>
</html>