Category - AJAX
Results 21 - 25 of 337
31 Dec 2020 31 Dec 2020 0 Comments  2305 Views
Here Mudassar Ahmed Khan has explained with an example, how to set TempData using JavaScript or jQuery in ASP.Net MVC Razor.

TempData is created on Server Side of the Web application and hence it is not possible to directly set it on Client Side using JavaScript or jQuery.

Thus, only possible way is to set it by making an AJAX call to the Controller’s Action method using jQuery AJAX function in ASP.Net MVC Razor.
19 Dec 2020 19 Dec 2020 0 Comments  4931 Views
Here Mudassar Ahmed Khan has explained with an example, how to download Excel file using AJAX in jQuery.

The Excel file will be downloaded as BLOB using jQuery AJAX and XmlHttpRequest (XHR) request and then the file will be downloaded using the Response inside the Success event handler of jQuery AJAX function.
19 Dec 2020 19 Dec 2020 0 Comments  3710 Views
Here Mudassar Ahmed Khan has explained with an example, how to download Excel File on Button click using JavaScript.

The Excel file will be downloaded as BLOB using XmlHttpRequest AJAX call and then will be sent for download in the Browser using JavaScript.
18 Dec 2020 18 Dec 2020 0 Comments  3407 Views
AJAX  jQuery  PDF
Here Mudassar Ahmed Khan has explained with an example, how to download PDF file using AJAX in jQuery.

The PDF file will be downloaded as BLOB using jQuery AJAX and XmlHttpRequest (XHR) request and then the file will be downloaded using the Response inside the Success event handler of jQuery AJAX function.
18 Dec 2020 18 Dec 2020 1 Comments  12129 Views
Excel  AJAX  jQuery  Word  PDF
Here Mudassar Ahmed Khan has explained with an example, how to download file in AJAX Response (Success) using jQuery.

The file will be downloaded as BLOB using jQuery AJAX and XmlHttpRequest (XHR) request and then the file will be downloaded using the Response inside the Success event handler of jQuery AJAX function.
Results 21 - 25 of 337