Category - Web API
Results 31 - 35 of 68
16 Dec 2019 16 Dec 2019 0 Comments  15906 Views
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) Web API inside HTTP POST Action method of Controller in ASP.Net MVC Razor.

When the Submit Button is clicked, the HTTP POST Action method of Controller will be called which in turn will call the Controller method of Web API 2.

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

The Web API 2 Controller method will be called using WebClient class inside MVC Controller.
10 Apr 2019 05 May 2021 0 Comments  32839 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  10541 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.
26 Mar 2019 26 Mar 2019 0 Comments  7625 Views
Here Mudassar Ahmed Khan has explained with an example, how to display BLOB as Image using AngularJS ng-src directive in ASP.Net MVC Razor.

This article will illustrate how to upload and send files to Web API using AngularJS $http service and HTML5 FormData and then convert the Image to BLOB format and display as Image using AngularJS ng-src directive in ASP.Net MVC Razor.
06 Mar 2019 06 Mar 2019 0 Comments  8651 Views
Here Mudassar Ahmed Khan has explained with an example, how to display BASE64 string as Image using AngularJS in ASP.Net MVC Razor.

This article will illustrate how to upload and send files to Web API using AngularJS $http service and HTML5 FormData and then convert the Image to BASE64 string format and display as Image using AngularJS in ASP.Net MVC Razor.
Results 31 - 35 of 68