Category - AJAX
Results 61 - 80 of 398
29 Apr 2021 29 Apr 2021 0 Comments  8753 Views
ASP.Net  AJAX  jQuery  MVC  Form
Here Mudassar Ahmed Khan has explained with an example, how to return Boolean (BOOL) value from ActionResult (Action Method) in ASP.Net MVC Razor.

In order to return a Boolean (BOOL) value from ActionResult (Action Method), Json function is used in ASP.Net MVC Razor.
29 Apr 2021 29 Apr 2021 0 Comments  10616 Views
ASP.Net  AJAX  jQuery  MVC  Form
Here Mudassar Ahmed Khan has explained with an example, how to submit (post) a Form and send data from View to Controller using jQuery AJAX in ASP.Net MVC Razor.

This article will explain how to create Form Fields and then send data from View to Controller using Form Collection and jQuery AJAX in ASP.Net MVC Razor.
29 Apr 2021 29 Apr 2021 0 Comments  9036 Views
Here Mudassar Ahmed Khan has explained with an example, how to update data into Database using jQuery AJAX and Entity Framework in ASP.Net MVC Razor.

When the Update Button is clicked, the UpdateCustomer Action method is called using jQuery AJAX and the details of Customer are sent as JSON object.

Finally, a Boolean response is sent to the View which indicates that the record was successfully updated or not.
28 Apr 2021 28 Apr 2021 0 Comments  6345 Views
Here Mudassar Ahmed Khan has explained with an example, how to insert data to Database using jQuery AJAX in ASP.Net MVC Razor.

The data will be inserted in SQL Server Database using Entity Framework in ASP.Net MVC Razor.

Finally, after insertion the ID of the inserted Customer record is returned back to the View in ASP.Net MVC Razor.
28 Apr 2021 28 Apr 2021 0 Comments  6310 Views
ASP.Net  AJAX  jQuery  MVC
Here Mudassar Ahmed Khan has explained with an example, how to get data from Controller using AJAX in ASP.Net MVC Razor.

This article will illustrate how to use jQuery AJAX function to get JSON data from the Controller’s Action method in ASP.Net MVC Razor.
28 Apr 2021 28 Apr 2021 0 Comments  8571 Views
Here Mudassar Ahmed Khan has explained with an example, how to get data from Database using jQuery AJAX in ASP.Net MVC Razor.

This article will illustrate how to use jQuery AJAX function to get data from SQL Server database and then populate the data in an HTML Table using ASP.Net MVC Razor.
28 Apr 2021 28 Apr 2021 0 Comments  7964 Views
Here Mudassar Ahmed Khan has explained with an example, how to save Form data to Database using jQuery AJAX in ASP.Net MVC Razor.

When the Add Button is clicked, the InsertCustomer Action method is called using jQuery AJAX and the details of Customer are sent as JSON object.

Finally, after insertion the ID of the inserted Customer record is returned back to the View in ASP.Net MVC Razor.
13 Apr 2021 13 Apr 2021 0 Comments  4228 Views
Here Mudassar Ahmed Khan has explained with an example, how to display a message before redirecting in ASP.Net MVC Razor.

When a Button is clicked, first an operation will be performed, then a message will be displayed using JavaScript Alert Message Box and finally the page will be redirected in ASP.Net MVC Razor.
19 Feb 2021 19 Feb 2021 0 Comments  3265 Views
Here Mudassar Ahmed Khan has explained with an example, how to use jQuery Unobtrusive AJAX helpers in ASP.Net Core.

The POST method of the Razor Page will be called using jQuery Unobtrusive AJAX library in ASP.Net Core.
19 Feb 2021 25 Apr 2022 0 Comments  2969 Views
Here Mudassar Khan has explained with an example, how to implement and use AJAX in ASP.Net Core 2.1 Razor Pages.

This article will illustrate how to use jQuery for performing AJAX operations in ASP.Net Core 2.1 Razor Pages.
29 Jan 2021 25 Apr 2022 0 Comments  3416 Views
Here Mudassar Khan has explained with an example, how to use AntiForgeryToken with jQuery Unobtrusive AJAX in ASP.Net Core Razor Pages.

The jQuery Unobtrusive AJAX library does not support adding headers to the request and hence it is not possible to send AntiForgeryToken.

Thus, the possible way is to make use of normal jQuery AJAX function and then send the AntiForgeryToken by adding it to the request headers.
29 Jan 2021 29 Jan 2021 0 Comments  9672 Views
Here Mudassar Ahmed Khan has explained with an example, how to use jQuery Unobtrusive AJAX in ASP.Net Core Razor Pages.

The POST method of the Razor Page will be called using jQuery AJAX Unobtrusive library and JSON from HTML in ASP.Net Core.
13 Jan 2021 29 Apr 2021 0 Comments  30372 Views
ASP.Net  AJAX  jQuery  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to submit (post) a Form and send data from View to Controller using jQuery AJAX in ASP.Net Core MVC.

This article will explain how to create Form Fields and then send data from View to Controller using Form Collection and jQuery AJAX in ASP.Net Core MVC.
31 Dec 2020 31 Dec 2020 0 Comments  22185 Views
Here Mudassar Ahmed Khan has explained with an example, how to set ViewBag using JavaScript or jQuery in ASP.Net MVC Razor.

ViewBag 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.
31 Dec 2020 31 Dec 2020 0 Comments  10376 Views
Here Mudassar Ahmed Khan has explained with an example, how to set ViewData using JavaScript or jQuery in ASP.Net MVC Razor.

ViewData 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.
31 Dec 2020 31 Dec 2020 0 Comments  12384 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  22784 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  20334 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  16505 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  71956 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 61 - 80 of 398