replica watches | rolex replica | replica rolex | replica watches | christian louboutin shoes | replica watches | fake watches | replica watches

利用C#制作简单的留言板

来源: 未知   日期:2009-12-09  我要评论  胶粘剂 结构胶 硅胶 密封胶 中国胶粘剂网
留言板分三个模块:列出留言列表、显示详细内容、发表留言 notepage.cs namespace notpage { using System; using System.Data.SQL ; using System.Data ; usin

留言板分三个模块:列出留言列表、显示详细内容、发表留言

  notepage.cs

  namespace  notpage

  {

  using  System;

  using  System.Data.SQL  ;

  using  System.Data  ;

  using  System.Collections  ;

  ////////////////////////////////////////////////////////////////////

  //

  //  Class  Name  :  留言板

  //

  //  Description:  构造一个留言板对象

  //

  //  date:  2000/06/06

  //

  //  作者:  天啦

  ///  ////////////////////////////////////////////////////////////////

  ///  <summary>

  ///  Summary  description  for  notepage.

  ///  </summary>

  public  class  notepage

  {

  //私有变量

  private  int  n_intID  ;  //ID编号

  private  string  n_strTitle  ;  //主题

  private  string  n_strAuthor  ;  //留言人

  private  string  n_strContent  ;  //留言内容

  private  DateTime  n_dateTime  ;  //留言时间

  //属性

  public  int  ID

  {

  get

  {

  return  n_intID  ;

  }

  set

  {

  n_intID  =  value;

  }

  }

  public  string  Title

  {

  get

  {

  return  n_strTitle  ;

  }

  set

  {

  n_strTitle  =  value;

  }

  }

  public  string  Author

  {

  get

  {

  return  n_strAuthor  ;

  }

  set

  {

  n_strAuthor  =  value  ;

  }

  }

  public  string  Content

  {

  get

  {

  return  n_strContent  ;

  }

  set

  {

  n_strContent  =  value  ;

  }

  }

  public  DateTime  adddate

  {

  get

  {

  return  n_dateTime;

  }

  set

  {

  n_dateTime  =  value;

  }

  }

  //构造函数

  public  notepage()

  {

  //

  //  TODO:  Add  Constructor  Logic  here

  //

  this.n_intID  =  0  ;

  this.n_strTitle  =  ""  ;

  this.n_strAuthor  =  ""  ;

  this.n_strContent  =  ""  ;

  this.n_dateTime  =  System.DateTime.Now;

  }

顶一下
(0)
0%
踩一下
(0)
0%
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 密码: 验证码: