没有合适的资源?快使用搜索试试~ 我知道了~
asp.net 使用Silverlight操作ASPNETDB数据库
需积分: 0 0 下载量 100 浏览量
2020-10-29
10:14:45
上传
评论
收藏 20KB PDF 举报
温馨提示
试读
1页
asp.net下使用Silverlight操作ASPNETDB数据库的实现代码
资源推荐
资源详情
资源评论
asp.net 使用使用Silverlight操作操作ASPNETDB数据库数据库
asp.net下使用Silverlight操作ASPNETDB数据库的实现代码
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");
资源评论
weixin_38535364
- 粉丝: 11
- 资源: 923
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功