扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
<WebMethod()> Public Function Get_Dataset() As super_ds customer_da.Fill(Super_ds1.Customers) order_da.Fill(Super_ds1.Orders) Return Super_ds1 End Function <WebMethod()> Public Sub Update_Dataset() Super_ds1.AcceptChanges() End Sub |
Imports System.Web.Services Public Class Service1 Inherits System.Web.Services.WebService ‘Web Services Designer Generated Code……. <WebMethod()> Public Function Get_Dataset() As super_ds customer_da.Fill(Super_ds1.Customers) order_da.Fill(Super_ds1.Orders) Return Super_ds1 End Function <WebMethod()> Public Sub Update_Dataset() Super_ds1.AcceptChanges() End Sub ' WEB SERVICE EXAMPLE ' The HelloWorld() example service returns the string Hello World. ' To build, uncomment the following lines then save and build the project. ' To test this web service, ensure that the .asmx file is the start page ' and press F5. ' '<WebMethod()> Public Function HelloWorld() As String ' HelloWorld = "Hello World" ' End Function End Class |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。