WEB开发网
开发学院网页设计JavaScript JavaScript与Web Service组合实现无刷新交互(扩展... 阅读

JavaScript与Web Service组合实现无刷新交互(扩展)--查询数据库

 2010-09-14 13:32:00 来源:WEB开发网   
核心提示: 三:建立UserInfo类并定义其成员与UserInfo表对应,设置其属性(get,set),UserInfo类的定义如下:public class UserInfo{public UserInfo(int id,string name,string sex,string age,stri

三:建立UserInfo类并定义其成员与UserInfo表对应,设置其属性(get,set),UserInfo类的定义如下:

public class UserInfo
{
  public UserInfo(int id,string name,string sex,string age,string telephone,string address)
  {
    this.UserId = id;
    this.UserName = name;
    this.UserSex = sex;
    this.UserAge = age;
    this.UserTelephone = telephone;
    this.UserAddress = address;
  }
  
  private int _userId;
  public int UserId
  {
    get { return _userId; }
    set { _userId = value; }
  }
  
  private string _userName;
  public string UserName
  {
    get { return _userName; }
    set { _userName = value; }
  }
  
  private string _userSex;
  public string UserSex
  {
    get { return _userSex; }
    set { _userSex = value; }
  }
  
  private string _userAge;
  public string UserAge
  {
    get { return _userAge; }
    set { _userAge = value; }
  }
  
  private string _userTelephone;
  public string UserTelephone
  {
    get { return _userTelephone; }
    set { _userTelephone = value; }
  }
  
  private string _userAddress;
  public string UserAddress
  {
    get { return _userAddress; }
    set { _userAddress = value; }
  }
}

上一页  1 2 3 4 5 6  下一页

Tags:JavaScript Web Service

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接