1. WebService.asmx:
Process business data and generate generic collection data in the GetList method for JqueryRequest.aspx to call. The code is as follows:
[WebMethod]
public List GetList()
{
List();
list.Add("aaaaaaaaaaaa");
list.Add("bbbbbbbbbbbb");
list.Add("cccccccccccc");
list.Add("dddddddddddd");
return list;
}
2. AjaxRequest.aspx Request WebService.asmx by clicking the button GetList() method to obtain a generic collection. The code is as follows: