Jan 21, 2011, 4:08 PM
[CLOSED] [1.0] DirectEvent File Download
Hello,
I have the following example:
Parent.aspx:
Suggestions?
Cheers,
Timothy
I have the following example:
Parent.aspx:
<ext:Button runat="server"
Icon="PageExcel"
Scale="Medium"
Text="Export"
Width="90">
<DirectEvents>
<Click
AutoDataBind="true"
Buffer="300"
IsUpload="true"
Method="GET"
Url="/Module/Tenders/Example.aspx" />
</DirectEvents>
</ext:Button>
Example.aspx.cx Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=test.txt");
Response.ContentType = "text/plain";
Response.Write("Hello World");
Response.End();
When I click on the "Export" button it throws an error.Suggestions?
Cheers,
Timothy
Last edited by Daniil; Jan 22, 2011 at 3:59 PM.
Reason: [CLOSED]