asp.net web api - how to pass large amount of data when exporting to excel using angularjs and web api -


i using angularjs + web api website. need export table excel. tried use different js methods, worked on chrome need work on >ie8.

so, decided use server: send table's $scope.data server using post. how looks:

    function excel_service($http) {     var _$http = $http;     self = this;     self.exporttoexcel = function (excel_data) {         var promise = _$http({             method: "post",             url: 'api/exporttoexcel',             data: { "exceldata": excel_data }         }).success(function (data, status, headers, config) {          }).error(function (data, status, headers, config) {          });         return promise;     }; }; 

when debug, see part of data appears in request, then, there error... think it's because trying pass 700 rows using method.

is there way send large data via post, or perhaps approach wrong, , it's better if saved data in server's session when retrieved, , export excel there.

thanks.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -