How to export to excel in Asp.Net MVC?

前端 未结 3 911
夕颜
夕颜 2021-01-13 23:07

SCRIPT

function PostExportValues(meter_id, range_type_id, start_date, end_date, returnUrl) {
    var meter = $(\"#meter_selection\").val()[0];
    $.ajax({
          


        
3条回答
  •  一向
    一向 (楼主)
    2021-01-13 23:46

    Also you can use

    window.location.href = "controllerName/GridExportToExcel?id="
    

提交回复
热议问题