locked
Export database data to excel using ajax in MVC RRS feed

  • Question

  • How to export data to excel through ajax call , after clicking on the button executed without any error but excel file is not downloaded

    lokesh

    • Moved by Anne Jing Tuesday, May 27, 2014 7:43 AM off-topic
    Monday, May 26, 2014 4:43 PM

Answers

All replies

  • http://forums.asp.net/

    It has a MVC section.

    • Proposed as answer by Just Karl Wednesday, May 28, 2014 2:48 PM
    • Marked as answer by Just Karl Wednesday, June 4, 2014 6:48 PM
    Monday, May 26, 2014 5:11 PM
  • Hi,

    Check below link

    Export data to excel in Asp.net MVC


    PS.Shakeer Hussain

    Monday, May 26, 2014 5:41 PM
  • Hi shakeer hussain,

       in my web page no gridview is there, i am calling export action method through ajax call.i wrote same thing mentioned in the above link it is executed free of bug but not exported the data into excel


    lokesh

    Monday, May 26, 2014 5:49 PM
  • Are export data into excel directly from database?

    PS.Shakeer Hussain


    Monday, May 26, 2014 5:56 PM
  • yes, i am exporting data to excel based on some conditions.

    lokesh

    Monday, May 26, 2014 6:00 PM
  • Check this link

    http://www.dotnetboss.com/2010/05/13/how-to-datatable-export-to-excel-in-asp-net/


    PS.Shakeer Hussain

    Monday, May 26, 2014 6:08 PM
  • Hi,

       its not exporting to excel


    lokesh

    Monday, May 26, 2014 6:25 PM