手机
当前位置:查字典教程网 >编程开发 >asp.net教程 >asp.net 使用Silverlight操作ASPNETDB数据库
asp.net 使用Silverlight操作ASPNETDB数据库
摘要:1.在Server端添加Silverlight-enabledWCFservice复制代码代码如下:[ServiceContract(Nam...

1.在Server端添加Silverlight-enabled WCF service

复制代码 代码如下:

[ServiceContract(Namespace = "")]

[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]

public class Service1

{

[OperationContract]

public void DoWork(string name,string pwd,string email,string question,string answer)

{

MembershipCreateStatus status;

Membership.CreateUser(name, pwd,email,question,answer,true,out status);

}

// Add more operations here and mark them with [OperationContract]

}

2. 添加此Service 引用到Silverlight

复制代码 代码如下:

ServiceReference2.Service1Client client = new ServiceReference2.Service1Client();

client.DoWorkAsync("xxifusi", "xxifusi345","d22@we.com","q","a");

【asp.net 使用Silverlight操作ASPNETDB数据库】相关文章:

asp.net Timer的使用方法

net操作access数据库示例分享

AspNetPager与Socut.Data使用方法

使用HttpWebRequest向网站模拟上传数据

asp.net下 jquery jason 高效传输数据

asp. net下使用foreach简化文本文件的访问。

javascript操作ASP.NET服务器控件

Asp.Net 通用数据操作类 (附通用数据基类)第1/2页

ASP.NET入门数据篇

asp.net post方法中参数取不出来的解决方法

精品推荐
分类导航