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

时间:2024-01-20 15:50:24 

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
0
投稿

猜你喜欢

  • 基于python实现数组格式参数加密计算

    2021-08-20 23:29:54
  • 优化你的ASP程序及优化网页

    2007-10-06 23:02:00
  • python3.6.4安装opencv3.4.2的实现

    2021-08-07 22:48:56
  • 配置php网页显示各种语法错误

    2023-11-14 07:23:04
  • sysbench的安装与使用 分享

    2024-01-17 08:41:19
  • Go语言实现的树形结构数据比较算法实例

    2023-08-06 18:18:39
  • python实现矩阵乘法

    2023-11-03 07:41:10
  • mysql 8.0.12 快速安装教程

    2024-01-28 09:01:40
  • ASP的URLDecode函数URLEncode解码函数

    2011-02-16 11:17:00
  • 用户研究角度看设计(1)“复制链接”的故事

    2008-12-26 17:48:00
  • python实现RSA加密(解密)算法

    2023-04-20 06:12:15
  • springboot配置mysql连接的实例代码

    2024-01-21 20:47:52
  • 开启SQLSERVER数据库缓存依赖优化网站性能

    2024-01-26 18:05:20
  • sql查询一个数组中是否包含某个内容find_in_set问题

    2024-01-23 19:55:12
  • 在Python中用keys()方法返回字典键的教程

    2023-08-20 17:45:39
  • 详解python第三方库的安装、PyInstaller库、random库

    2023-03-13 06:57:46
  • Python绘图之桃花盛开

    2022-03-20 08:05:50
  • Python直接赋值、浅拷贝与深度拷贝实例分析

    2023-03-15 08:08:02
  • 正则 global 属性介绍

    2008-03-18 20:50:00
  • python webp图片格式转化的方法

    2021-09-03 16:27:44
  • asp之家 网络编程 m.aspxhome.com