View Full Version : Download File using DirectEvent (MVC)

Mar 25, 2021, 3:48 PM
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">
<click actionName="dataDownload" method="POST">
<ext-eventMask showMask="true" msg="@localizer["textSaving..."].Value" />
<ext-add key="paramA" value="App.comboA.getValue()" mode="Raw" />
<ext-add key="paramB" value="App.comboB.getValue()" mode="Raw" />


Mar 25, 2021, 4:54 PM
Hello @dnakorea!

We have a recent discussion on this, please refer to this forum thread: Download File using DirectEvent (https://forums.ext.net/showthread.php?63101).

Hope this helps!

Mar 26, 2021, 1:31 AM
my problem solved.