温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:简单的论坛式留言本
当前文件:
SimpleBbsGuestBook/App_Code/GuestBook.cs[1K,2009-6-12 11:54:02],打开代码结构图
SimpleBbsGuestBook/App_Code/GuestBook.cs[1K,2009-6-12 11:54:02],打开代码结构图1using System; 2
using System.Data; 3
using System.Configuration; 4
using System.Web; 5
using System.Web.Security; 6
using System.Web.UI; 7
using System.Web.UI.WebControls; 8
using System.Web.UI.WebControls.WebParts; 9
using System.Web.UI.HtmlControls; 10
11
/// <summary> 12
/// GuestBook 的摘要说明 13
/// 留言类 14
/// </summary> 15
public class GuestBook 16
{ 17
/// <summary> 18
/// gb_title 留言标题 19
/// gb_author 留言人的昵称 20
/// gb_ip 留言人的IP 21
/// gb_content 留言内容 22
/// gb_date 留言时间 23
/// gb_id 留言ID 24
/// </summary> 25
private string gb_title, gb_author, gb_ip, gb_content; 26
27
private DateTime gb_date; 28
29
private int gb_id; 30
31
public string Gb_content 32
{ 33
get { return gb_content; } 34
set { gb_content = value; } 35
} 36
37
public string Gb_ip 38
{ 39
get { return gb_ip; } 40
set { gb_ip = value; } 41
} 42
43
public string Gb_author 44
{ 45
get { return gb_author; } 46
set { gb_author = value; } 47
} 48
49
public string Gb_title 50
{ 51
get { return gb_title; } 52
set { gb_title = value; } 53
} 54
55
public int Gb_id 56
{ 57
get { return gb_id; } 58
set { gb_id = value; } 59
} 60
61
public DateTime Gb_date 62
{ 63
get { return gb_date; } 64
set { gb_date = value; } 65
} 66
67
public GuestBook() 68
{ 69
// 70
// TODO: 在此处添加构造函数逻辑 71
// 72
} 73
}








