Download File using DirectEvent (MVC)

  1. #1

    Download File using DirectEvent (MVC)

    I have problem download file using DirectEvent in mvc (asp.net core mvc page)

    Error message is "BADRESPONSE: Invalid or unexpected token"

    "K�zR\ ���,xl/workbook.xml���N�0 E%�3�2�ڎ�� v��I��5�S%���זݱ�e�;�� �7ʅ���kZ0$.y�� 78N�ֿ�|~M�l꽔~aV]{k��)bi�JR��rD�c>ٲfB_f"��ݷmg#� ������4��bdi�s͞|�{� ��;��[Ow�C�6��1J!����.�D��2-��}�y-`�4�?��?ͧPK�zRx>nY% ���"

    [cshtml page code]

    <ext-button tooltip="Excel Download" iconCls="fal fa-cloud-download" variant="Warning">
    <directEvents>
      <click  actionName="dataDownload" method="POST">
       <eventMask>
        <ext-eventMask showMask="true" msg="@localizer["textSaving..."].Value" />
       </eventMask>
       <extraParams>
       <ext-add key="paramA" value="App.comboA.getValue()" mode="Raw" />
       <ext-add key="paramB" value="App.comboB.getValue()" mode="Raw" />
       </extraParams>
      </click>
    
      </directEvents>
     </ext-button>
  2. #2
    Hello @dnakorea!

    We have a recent discussion on this, please refer to this forum thread: Download File using DirectEvent.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3

    I got it.

    my problem solved.

Similar Threads

  1. Download File using DirectEvent
    By bbros in forum 7.x Classic Premium Help
    Replies: 1
    Last Post: Mar 10, 2021, 9:21 PM
  2. download file with DirectEvent on GridPanel
    By novacp in forum 2.x Help
    Replies: 1
    Last Post: Feb 13, 2014, 10:38 AM
  3. Download File using DirectEvent
    By Daniil in forum Examples and Extras
    Replies: 0
    Last Post: Dec 13, 2013, 4:02 AM
  4. [CLOSED] MVC DirectEvent Download File
    By MWM2Dev in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 17, 2013, 11:49 AM
  5. [CLOSED] [1.0] - MVC - DirectEvent Download File
    By drkoh in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 23, 2010, 8:26 PM

Posting Permissions