访问WebService传递复杂参数

服务器内容是

[WebMethod]

public bool RegisterUser(UserEntity userentity)

{

userentity.Point = int.Parse(ConfigurationManager.AppSettings["UserBeginPoint"]);

userentity.UserPsw = FormsAuthentication.HashPasswordForStoringInConfigFile(userentity.UserPsw, "MD5");

if (UserData.InsertUser(userentity))

return true;

else

return false;

}

这个UserEntity是

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace SQLProduct

{

public class UserEntity

{

public string UserID { set; get; }

public int DesignationKindID { set; get; }

public string MailAddress { set; get; }

public int GradeID { set; get; }

public string UserPsw { set; get; }

public string Question { set; get; }

public string Answer { set; get; }

public string UserName { set; get; }

public int Point { set; get; }

public string UserType { set; get; }

public string LockTime { set; get; }

public int LoginCount { set; get; }

public string LoginTime { set; get; }

}

}

上一页 1 2 下一页
------分隔线----------------------------
· 首页 · 注册

百鸣[Baiming.org]欢迎您 百鸣[Baiming.org]欢迎您~