











A: WEBService
1。创建WEBservice工程
工程编译后生成 : ddd.Service.DLL文件
2。在web中引用工程
添加引用:ddd.Service.Dll
在cs中
using System.Web.Services;
using ddd.Service;
添加Service对象
假如 dll中有类 users
则创建对象 users usersvc;
3。在函数中引用:
private void Btn1_Click()
{
usersvc= new Users();
string hello= usersvc.GetHello();
}
Ok
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。