留言板分三个模块:列出留言列表、显示详细内容、发表留言
notepage.cs
namespace notpage
{
using System;
using System.Data.SQL ;
using System.Data ;
using System.Collections ;
/// <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
使用C#构建简单留言板教程

这个博客介绍了如何使用C#来创建一个简单的留言板应用,包括三个主要功能:列出留言列表、显示详细内容和发表留言。通过实例展示了如何操作数据库,如调用存储过程进行数据读写,并提供了相关类的定义和方法实现。
最低0.47元/天 解锁文章
371





