Results 21 - 25 of 69
28 Aug 2018 28 Aug 2018 0 Comments  7627 Views
Here Mudassar Ahmed Khan has explained with an example, how to read response from Web API using HttpClient in C#.

The Web API 2 Controller method will fetch records from database using Entity Framework in ASP.Net MVC.

The Web API 2 Controller method will be called using HttpClient class along with parameters in Console Application using C#.
28 Aug 2018 28 Aug 2018 0 Comments  5035 Views
Here Mudassar Ahmed Khan has explained with an example, how to fetch (retrieve) data from Database using AngularJS in ASP.Net MVC Razor.

The data from the database will be fetched using Entity Framework inside a Web API Controller.

The Web API Controller will be called from AngularJS using $http service and the retrieved database records will be displayed in Table (Grid) format.
28 Aug 2018 28 Aug 2018 0 Comments  8275 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (parse) JSON string returned from Web API using C#.

The WebClient class will be used to call the Web API 2 Controller method which will fetch records from database using Entity Framework and return the records in JSON format.

The JSON string will be read, parsed and de-serialized into a Generic List collection of Class objects.
30 Jul 2018 30 Jul 2018 0 Comments  8004 Views
ASP.Net  AJAX  jQuery  HTML  JSON  Table  MVC
Here Mudassar Ahmed Khan has explained with an example, how to convert HTML Table rows (data) to JSON array and send to Controller’s Action method using jQuery AJAX in ASP.Net MVC Razor.

The data from all the rows of the HTML Table will be added to an array of JSON objects and sent to Controller using jQuery AJAX.

Finally, the data will be saved to database using Entity Framework in ASP.Net MVC Razor.
23 Jul 2018 23 Jul 2018 0 Comments  6787 Views
ASP.Net  AJAX  SQL Server  jQuery  HTML  JSON  Table  MVC  TextBox
Here Mudassar Ahmed Khan has explained with an example, how to validate at-least one CheckBox is checked (selected) from a group of multiple CheckBoxes in ASP.Net MVC Razor.

There is no Data Annotation attribute to perform at-least one CheckBox checked (selected) validation in a group of multiple CheckBoxes, hence the validation will be performed using jQuery in ASP.Net MVC Razor.

The list of CheckBoxes will be populated from database using Model in ASP.Net MVC Razor.
Results 21 - 25 of 69