Here Mudassar Ahmed Khan has explained with an example, how to populate (bind) GridView using Web API and JSON in ASP.Net with C# .Net.
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 WebClient class in ASP.Net WebForm (ASPX) page to populate GridView control.
↧