[CLOSED] [1.0] MVC Download file

  1. #1

    [CLOSED] [1.0] MVC Download file

    Hello,

    In reference to this thread http://forums.ext.net/showthread.php...ownload-in-MVC how would one do this from an ext:Window toolbar?

    For example:

    <ext:Window runat="server">
        <TopBar>
            <ext:Toolbar runat="server">
                <Items>
                    <ext:ToolbarFill runat="server" />
                    <ext:Button runat="server" Icon="PageWhiteAcrobat" StandOut="true" Text="Print to PDF">
                        <DirectEvents>
                            <Click
                                IsUpload="true"
                                Method="POST"
                                Url="/Document/Get" />
                            </Click>
                        </DirectEvents>
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </TopBar>
    </ext:Window>
    Suggestions? I can't place a <form> in that context.

    Cheers,
    Timothy
    Last edited by Daniil; Aug 03, 2010 at 1:46 PM.
  2. #2
    Hi,

    You can place a form anywhere and set FormID for the direct event
  3. #3
    Quote Originally Posted by vladimir View Post
    Hi,

    You can place a form anywhere and set FormID for the direct event
    I thought the FormID was for the <ext:FormPanel>?
  4. #4
    Hi,

    No, it can be html form also

Similar Threads

  1. [CLOSED] How to download a file in DirectEvent?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jun 08, 2012, 1:20 PM
  2. [CLOSED] Download a file in an MVC app
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 02, 2010, 9:01 PM
  3. [CLOSED] [1.0] File download in MVC
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 23, 2009, 4:43 PM
  4. [CLOSED] File download from AjaxEvent
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 02, 2009, 8:02 AM
  5. File download
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 05, 2008, 7:22 AM

Posting Permissions