利用C#制作简单的留言板
留言板分三个模块:列出留言列表、显示详细内容、发表留言
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;
}
- 上一篇:如何读取FoxPro(dbf)打删除标记的记录
- 下一篇:没有了
- 最新评论 查看所有评论
-
- 发表评论 查看所有评论
-
- GRIDVIEW排序 动态实现和静态实现
- ASP.NET2.0数据操作之创建数据访问层
- 单点登录的实现
- ASP.NET程序中常用代码汇总
- ASP.NET中实时图表的实现
- ASP.NET中利用Crystal Report创建图表
- ASP.NET 2.0中Gridview控件高级技巧
- VB中String的用法及原理
- ASP.NET 2.0轻松实现数据库应用开发
- ASP.NET AJAX入门系列(1):概述
- HijackThis使用详解
- 网友整理 .net 面试题(附答案)
- Visual Studio 2005中编译调试
- ASP.NET AJAX入门系列(2):使用ScriptManager控
- ASP.NET2.0中Gridview中数据操作技巧
- ASP.NET安装包制作图解
- .NET MSChart应用的一个简单例子
- 利用AJAX和ASP.NET实现简单聊天室
- ASP.NET AJAX 如何制作RSS订阅器
- ASP.NET定制简单的错误处理页面
- 在ASP.NET中使用AJAX的简单方法
- ASP.NET Web应用程序的简单AJAX实现
- ASP.NET Atlas简单控件介绍之四大控件
- ASP.NET Atlas简单控件介绍之两个基类
- .net页面间的参数传递简单实例
- ASP.NET Atlas简单控件介绍——Sys.Component基类
- 一个简单的分页控件,用来自定义分页用的
- 有趣的多线程编程(1)——一个简单的例子
- 用ASP.NET结合XML制作广告管理程序
- 手工创建datagrid数据列/模板列/按钮事件+简单的
