New Additions
06 May 2021 06 May 2021 0 Comments  163 Views
Here Mudassar Ahmed Khan has explained with an example, how to return Exception Error Message when using JSON and AJAX in ASP.Net MVC Razor.

This article will illustrate how to return the Exception Error Message using JSON from the Controller when calling the Controller using jQuery AJAX in ASP.Net MVC Razor.
01 Nov 2010 06 May 2021 17 Comments  110371 Views
Here Mudassar Ahmed Khan has explained with an example, how to change the Background and Border Color of Invalid Controls when Validation fails in ASP.Net.

The WebForm_OnSubmit function is an in-built ASP.Net JavaScript method which performs validation of controls and it needs to be modified and overridden in order to incorporate the Background and Border color changes of Invalid controls.
11 Feb 2021 05 May 2021 0 Comments  1316 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to use WebClient in ASP.Net Core MVC.

This article will illustrate how to call an API using the DownloadString method of the WebClient class in ASP.Net Core MVC.
05 May 2021 05 May 2021 0 Comments  191 Views
ASP.Net  JSON  MVC  Web API
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) an external REST API inside Controller in ASP.Net MVC Razor.

The external REST API will be called using WebClient class in ASP.Net MVC Razor.
05 May 2021 05 May 2021 0 Comments  167 Views
Here Mudassar Ahmed Khan has explained with an example, how to get JSON response from REST API in ASP.Net using C# and VB.Net.

The JSON response from the REST API will be read using WebClient class in ASP.Net using C# and VB.Net.
05 May 2021 05 May 2021 0 Comments  176 Views
Here Mudassar Ahmed Khan has explained with an example, how to call a JSON API in ASP.Net using C# and VB.Net.

The JSON API will be called using WebClient class in ASP.Net using C# and VB.Net.
05 Jun 2014 05 May 2021 4 Comments  91362 Views
Here Mudassar Ahmed Khan has explained how to submit form to database without page refresh using jQuery AJAX and JSON in ASP.Net.

For this article I will make use of an ASP.Net WebMethod and the data from the form fields i.e. TextBox, DropDownList, etc. will be inserted into database table.
15 Nov 2013 05 May 2021 9 Comments  181725 Views
Here Mudassar Ahmed Khan has explained with an example, how to insert or update data asynchronously (without PostBack) to database using jQuery AJAX and Page Methods (WebMethod) in ASP.Net.

This article will also explain how use an ASP.Net WebMethod to fetch data from the form fields i.e. TextBox, DropDownList, etc. and later insert it into database table.
07 Nov 2013 05 May 2021 4 Comments  78765 Views
Here Mudassar Ahmed Khan has explained with an example, how to save Form data asynchronously (without PostBack) to database using jQuery AJAX and Page Methods (WebMethod) in ASP.Net.

This article will also explain how use an ASP.Net WebMethod to fetch data from the form fields i.e. TextBox, DropDownList, etc. and later insert it into database table.
10 Apr 2019 05 May 2021 0 Comments  25914 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (parse) JSON data from URL in ASP.Net using C# and VB.Net.

The JSON string will be first downloaded from an API using WebClient class and then will be converted to DataTable using JSON.Net library.

Finally, the DataTable will be used to populate the GridView control in ASP.Net using C# and VB.Net.
10 Apr 2019 05 May 2021 0 Comments  7771 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind (populate) GridView using JSON string in ASP.Net using C# and VB.Net.

The JSON string will be first downloaded from an API using WebClient class and then will be converted to DataTable using JSON.Net library.

Finally, the DataTable will be used to populate the GridView control in ASP.Net using C# and VB.Net.
03 May 2021 03 May 2021 0 Comments  298 Views
ASP.Net  JSON  MVC
Here Mudassar Ahmed Khan has explained with an example, how to use WebClient in ASP.Net MVC Razor.

This article will illustrate how to call an API using the DownloadString method of the WebClient class in ASP.Net MVC Razor.
30 Apr 2021 30 Apr 2021 0 Comments  301 Views
ASP.Net  AJAX  jQuery  MVC
Here Mudassar Ahmed Khan has explained with an example, how to create a VOID ActionResult (Action Method) i.e. an ActionResult (Action Method) inside Controller that does not return View in ASP.Net MVC Razor.

There is nothing like a VOID ActionResult (Action Method), hence ASP.Net MVC has created a class EmptyResult whose object is returned in case when NULL value or Nothing needs to be returned from Controller to View in ASP.Net MVC Razor.
30 Apr 2021 30 Apr 2021 0 Comments  251 Views
ASP.Net  AJAX  jQuery  MVC
Here Mudassar Ahmed Khan has explained with an example, how to return NULL (Nothing) from ActionResult (Action Method) in ASP.Net MVC Razor.

There are two ways to return NULL from an ActionResult (Action Method):
1. Using EmptyResult class. In order to learn more about EmptyResult class, please refer my article ASP.Net MVC EmptyResult Example: Return NULL (Nothing) from Controller to View.
2. Simply return NULL value. In such case, ASP.Net automatically returns EmptyResult class object internally.
30 Apr 2021 30 Apr 2021 0 Comments  282 Views
Here Mudassar Ahmed Khan has explained with an example, how to delete data from Database using jQuery AJAX and Entity Framework in ASP.Net MVC Razor.

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

Finally, a Customer object is sent to the View which indicates that the record was successfully deleted or not.
30 Apr 2021 30 Apr 2021 0 Comments  236 Views
ASP.Net  AJAX  jQuery  MVC
Here Mudassar Ahmed Khan has explained with an example, how to use EmptyResult in ASP.Net MVC Razor.

EmptyResult is a class in ASP.Net MVC whose object is returned in case when NULL value or Nothing needs to be returned from Controller to View in ASP.Net MVC Razor.
29 Apr 2021 29 Apr 2021 0 Comments  277 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  339 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  297 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.
19 Feb 2021 29 Apr 2021 0 Comments  1404 Views
ASP.Net  jQuery  MVC  Form  FormData  Core
Here Mudassar Ahmed Khan has explained with an example, how to submit Form using jQuery in ASP.Net Core MVC.

This article will explain how to create Form Fields and then submit data from View to Controller using Form Collection and jQuery AJAX in ASP.Net Core MVC
13 Jan 2021 29 Apr 2021 0 Comments  5673 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.
28 Apr 2021 28 Apr 2021 0 Comments  312 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  273 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  318 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.
21 Apr 2018 28 Apr 2021 1 Comments  4741 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Custom Paging (Pagination) using Entity Framework and jQuery in ASP.Net MVC Razor.

An HTML Table will be implement with Custom Paging (Pagination) using Entity Framework Skip and Take functions in ASP.Net MVC Razor.