鉴于大家对ASP.net十分关注,我们编辑小组在此为大家搜集整理了“webservice结合dhtml的简单例子(4)”一文,供大家参考学习
{
get
{
return this.m_strValue ;
}
set
{
this.m_strValue = value ;
}
}
public Item(string a_strName , string a_strValue)
{
this.m_strName = a_strName ;
this.m_strValue = a_strValue ;
}
public Item()
{
this.m_strName = "" ;
this.m_strValue = "" ;
}
}//end class
/// <summary>
/// 简单的示例用类
/// 结构很简单,三个成员变量
/// 一个int类型的编号,
/// 一个item类型,一个Demo类型
/// </summary>
public class Record
{
private int m_intID ;
private Item m_objMyItem ;
private Demo m_objMyDemo ;
public Record()
{
this.m_intID = 0 ;
this.m_objMyDemo = new Demo() ;
this.m_objMyItem = new Item() ;
}
public Record(int a_intID , Item a_objItem , Demo a_objDemo)
{
this.m_intID = a_intID ;
this.m_objMyDemo = a_objDemo ;
this.m_objMyItem = a_objItem ;
}
}//end calss
/// <summary>
/// 一个简单的示例用类
/// 结构很简单,只有两个成员变量,一个name , 一个amount
/// </summary>
public class Demo
{
private string m_strName ;
private int m_intAmount ;
public string Name
{
get
{
return this.m_strName ;
}
set
{
this.m_strName = value ;
}
}
public int Amount
{
get
{
return this.m_intAmount ;
}
set
{
this.m_intAmount = value ;
}
}
/// <summary>
/// 构造函数
/// </summary>
public Demo()
{
this.m_intAmount = 0 ;
this.m_strName = "" ;
}
/// <summary>
/// 重载构造函数
/// </summary>
/// <param name="a_strName"></param>
/// <param name="a_intAmount"></param>
public Demo(string a_strName , int a_intAmount)
{
this.m_intAmount = a_intAmount ;
this.m_strName = a_strName ;
}
}//end class
}//end namespace