Thursday, March 6, 2014

Populate an ASP.NET ListBox from JSON results using jQuery

how to populate an ASP.NET ListBox using data coming from a JSON Serialized ASP.NET Web Service. Note that for demonstration purposes, I have included jQuery code in the same page. Ideally, these resources should be created in separate folders for maintainability. Let us quickly jump to the solution and see how to populate an ASP.NET ListBox from data coming from a JSON Serialized ASP.NET Web Service Populate a ListBox from JSON Results

Click on a Radio Button to retrieve 'Gender' based data




In this example, we will see how to consume an ASP.NET Web Service (EmployeeList.asmx) that is JSON Serialized. The data source for this web service is List in the Employee.cs class.