当前位置: 移动技术网 > IT编程>开发语言>.net > asp.net 使用Silverlight操作ASPNETDB数据库

asp.net 使用Silverlight操作ASPNETDB数据库

2017年12月12日  | 移动技术网IT编程  | 我要评论

天地龙魂漫画,拳击小将一步,日月水火ppt

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");

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网