手机
当前位置:查字典教程网 >编程开发 >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 post方法中参数取不出来的解决方法

ashx中使用session的方法

asp.net窗体操作总结

dz asp.net论坛中函数--根据Url获得源文件内容

asp.net ListView 数据绑定

asp.net下用DataSet生成XML的问题

ASP.NET中数据库操作初步

asp.net中List的使用方法

ASP.NET入门数据篇

Asp.Net 数据操作类(附通用数据基类)

精品推荐
分类导航