服务器内容是
[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; }
}
}

百鸣[Baiming.org]欢迎您~