asp.net+sql 简易留言板源码


asp.net+sql 简易留言板源码,挺简单的,大家可以学习一下。
资源截图
代码片段和文件信息
using System;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Text.Regularexpressions;

public partial class _index : System.Web.UI.Page
{


    public class lyb {

        string _rq;//日期
        string _xm; //姓名
        string _yx; //邮箱
        string _zy; //主页
        string _qq; //QQ
        string _ly; //留言
        string _lj; //连接字符串
        bool _ubb; //是否使用UBB

        int _xy_dx_zs; //当前页页大小记录总数


       public lyb() {
            _ubb=true;
            _xy=1;
            _dx=5;
            _zs=0;
            _xm=_yx=_zy=_qq=_ly=““;
            _lj = ConfigurationSettings.AppSettings[“sjk“];
       }

       //UBB属性
       public bool ubb {
            get {
                 return _ubb;
            }
            set {
                 _ubb=value;
            }
       }


       //日期属性
       public string rq
       {
           get
           {
               return _rq;
           }
           set
           {
               _rq = html(value);
           }
       }

       //姓名属性
       public string xm {
            get {
                return _xm;
            }
            set {
                _xm=html(value);
            }
        }

        //邮箱属性
        public string yx {
            get {
                return _yx;
            }
            set {
                _yx=html(value);
            }
        }

        //主页属性
        public string zy {
            get {
                return _zy;
            }
            set {
                _zy=html(value);
            }
        }

        //QQ属性
        public string qq {
            get {
                return _qq;
            }
            set {
                _qq=html(value);
            }
        }

        //留言属性
        public string ly {
            get {
                return _ly;
            }
            set {
                if(_ubb)
                    _ly=ubbzh(html(value));
                else
                    _ly=html(value);
            }
        }

        //当前页属性
        public int xy {
            get { return _xy; }
            set { _xy=value-1; }
        }

        //页大小属性
        public int dx {
            get { return _dx; }
            set { _dx=value; }
        }

        //记录总数属性只读
        public int zs {
            get { return _zs; }
        }

        //UBB代码
        string ubbzh(string bl) {
            Random sj = new Random();
            bl=Regex.Replace(bl“\[URL\](.*?)\[/URL\]““tle=“$1“>$1“);
            bl=Regex.Replace(bl“\[URL=(.*?)\](.*?)\[/URL\]““tle=“$1“>$2“);
            bl=Regex.Replace(bl“\[MAIL\](.*?)\[/MAIL\]““$1“);
            bl=Regex.Replace(bl“\[MAIL=(.*?)\](.*?)\[/MAIL\]““$2

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     408064  2010-12-30 17:09  程俊克、李正、李彦 留言版200809203105 李正.doc

     文件     440320  2010-12-30 17:10  程俊克、李正、李彦 留言版200809203206 程俊克.doc

     文件     495104  2010-12-30 17:06  程俊克、李正、李彦 留言版200809203252 李彦.doc

     文件      14543  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板cd.swf

     文件       3934  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板css.css

     文件    2097152  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板dbsjk.ldf

     文件    2097152  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板dbsjk.mdf

     文件      12644  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板gl.aspx

     文件         82  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板helphelp.filesold.gif

     文件        216  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板helphelp.filesfgcolor.gif

     文件         93  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板helphelp.filesitalic.gif

     文件        150  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板helphelp.filesOblogstyleAdminFunctionCommon.css

     文件      10952  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板helphelp.filesOblogstyleAdminFunctionDiv.css

     文件        203  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板helphelp.filesOblogstyleAdminFunctionDivframe.css

     文件       1388  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板helphelp.filesOblogstyleAdminFunctionElement.css

     文件        810  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板helphelp.filesOblogstyleAdminMainframe.css

     文件       3126  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板helphelp.html

     文件         64  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板imagesclose_a.gif

     文件        248  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板imagesindex_14.gif

     文件        539  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板imagesindex_16.gif

     文件       6092  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板imagesindex_18.gif

     文件      18341  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板imagesindex_22.gif

     文件       3115  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板imagesindex_24.gif

     文件        438  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板imagesindex_25.gif

     文件        585  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板imagesindex_7.gif

     文件       2104  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板imagesindex_9.gif

     文件       1055  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板imagesonline.gif

     文件        932  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板img1.gif

     文件       2112  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板img3e.jpg

     文件       1196  2010-12-27 16:57  程俊克、李正、李彦 留言版留言板imgadell.gif

............此处省略30个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)