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,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; }
}
}
Tags:JavaScript Web Service
编辑录入:爽爽 [复制链接] [打 印]更多精彩
赞助商链接