Category - AJAX
Results 11 - 15 of 320
17 Dec 2020 17 Dec 2020 0 Comments  441 Views
Here Mudassar Ahmed Khan has explained with an example, how to download PDF File on Button click using JavaScript.

The PDF file will be downloaded as BLOB using XmlHttpRequest AJAX call and then will be sent for download in the Browser using JavaScript.
09 Dec 2020 09 Dec 2020 0 Comments  759 Views
ASP.Net  Excel  AJAX  jQuery  Word  PDF  Web Method
Here Mudassar Ahmed Khan has explained with an example, how to download File from Web Method via AJAX call in ASP.Net using C# and VB.Net.

The AJAX call will be done using jQuery AJAX function and the file will be converted to Base64 string and downloaded from Web Method in ASP.Net.
07 Dec 2020 07 Dec 2020 0 Comments  559 Views
ASP.Net  AJAX  jQuery  MVC  Web API  Image
Here Mudassar Ahmed Khan has explained with an example, how return multiple Images from Server using Web API in ASP.Net MVC Razor.

The Web API will be called using jQuery AJAX and the Web API will read the Image files from a Folder (Directory) on the Server’s Disk and will return the List of Image files to the calling jQuery AJAX function.

Finally, the returned Image files will be displayed on page using jQuery in ASP.Net MVC Razor.
18 Nov 2020 18 Nov 2020 0 Comments  595 Views
Here Mudassar Ahmed Khan has explained with an example, how to send AntiForgeryToken with AJAX requests in ASP.Net Core Razor Pages.

The AntiForgeryToken is used to prevent cross-site request forgery (CSRF) attacks and this article will illustrate how to configure and use the AntiForgeryToken during jQuery AJAX POST call in ASP.Net Core Razor Pages.
18 Nov 2020 18 Nov 2020 0 Comments  457 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Current Date and Time in Razor Page (cshtml) in ASP.Net Core Razor Pages.

The Current Date and Time will be determined inside the Handler method which will be later sent to the Razor Page for display using jQuery AJAX in ASP.Net Core Razor Pages.
Results 11 - 15 of 320