zoukankan      html  css  js  c++  java
  • 使用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");

            

  • 相关阅读:
    servlet
    反射
    网络通信协议
    线程安全,
    线程池, Callable<V>接口
    Thread类,Runnable 接口
    commons-IO
    序列化流与反序列化流,打印流
    转换流,Properties 集合
    缓冲流
  • 原文地址:https://www.cnblogs.com/xixifusigao/p/1647831.html
Copyright © 2011-2022 走看看