Results 21 - 25 of 67
28 Aug 2018 28 Aug 2018 0 Comments  4432 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  6325 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  4686 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.
05 Jul 2018 05 Jul 2018 0 Comments  3123 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Custom Paging in WebGrid using Stored Procedure and Entity Framework in ASP.Net MVC Razor.

Custom Paging will be performed at Database level inside the Stored Procedure using the ROW_NUMBER function.

The PageIndex and PageSize values will be passed to the Stored Procedure using Entity Framework and only the specific records will be fetched and displayed in WebGrid, thus reducing the bandwidth usage.
03 Jul 2018 03 Jul 2018 1 Comments  11369 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Select Insert Edit Update and Delete (CRUD) using Single Stored Procedure in ASP.Net MVC Razor.

Single Stored Procedure will be called using Entity Framework and a parameter named Action will be used to send instructions about the operation to be performed in SQL Server database. Single Stored Procedure CRUD operation will be performed by calling the Controller Action methods using jQuery AJAX and JSON in ASP.Net MVC Razor.
Results 21 - 25 of 67