
前阵子工作中用到,贴上代码,仅保留上传有关的代码,发现code其实很少。上传页面html/js复制代码代码如下:!DOCTYPEhtmlPUBLIC\"-//W3C//DTDXHTML1.0Transitional//EN\"\"http://www.w3.org/TR/xhtml1/DTD/xhtml

数据类代码:复制代码代码如下:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Collections;usingSystem.Reflection;

首先还是建一个DoComments.aspx页面和一个DealComments.ashx页面(代码基本上都有注释,如果没写注释,请先看前几篇!)。Docomments.aspx页面中的代码为:复制代码代码如下:headrunat=\"server\"title>

1、首先是在后台验证码的aspx文件的Page_Load中的事件代码:复制代码代码如下:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;