假设有个web服务查询数据库并返回一个DataSet,在客户端只要添加引用,然后调用web服务方法即可;1.工程-添加web引用-浏览-http://localhost/mydir/dataSetService.asmx2.localhost.dataSetService service;
DataSet ds;
service=new localhost.dataSetService();
ds=service.GetTitles();
MyDataGrid.DataSource=ds;
DataSet ds;
service=new localhost.dataSetService();
ds=service.GetTitles();
MyDataGrid.DataSource=ds;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货