資源簡介
此網站是采用SQL2005編寫的源碼,可供大家下載學習噢!

代碼片段和文件信息
using?System;
using?System.IO;
using?System.Data;
using?System.Configuration;
using?System.Collections;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.Web.UI.HtmlControls;
public?partial?class?addchapter?:?System.Web.UI.Page
{
????protected?string?title?=?““;
????protected?string?chaptername?=?““;
????protected?string?chaptercontent?=?““;
????protected?string?chapterpath?=?““;
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????????if?(Session.Contents[“username“]?==?null)
????????????Response.Write(“ript?language=‘javascript‘?type=‘text/javascript‘>alert(‘“?+?Resources.Resource.AddChapter1+?“‘);location=‘default.aspx‘; ript>“);
????????if?(Request.QueryString[“topicid“]?!=?null?&&?Regular.IsId(Request.QueryString[“topicid“].ToString()))
????????{
????????????string?path?=?““;
????????????int?chapterid?=?0?operate?=?0;
????????????if?(Request.QueryString[“operate“]?!=?null?&&?(Request.QueryString[“operate“].ToString()?==?“1“?||?Request.QueryString[“operate“].ToString()?==?“2“)?&&?Request.QueryString[“chapterid“]?!=?null?&&?Regular.IsId(Request.QueryString[“chapterid“].ToString()))
????????????{
????????????????chapterid?=?int.Parse(Request.QueryString[“chapterid“].ToString());
????????????????operate?=?int.Parse(Request.QueryString[“operate“].ToString());
????????????}
????????????int?topicid?=?int.Parse(Request.QueryString[“topicid“].ToString());
????????????DataSet?dataset?=?SqlStore.SqlDiyReadChapter(topicid?Session.Contents[“username“].ToString()?chapterid?operate?ref?title?ref?path?ref?chapterpath);
????????????if?(chapterpath?!=?““)
????????????????File.Delete(Server.MapPath(path)?+?chapterpath);
????????????this.List_ChapterList.DataSource?=?dataset.Tables[0];
????????????this.List_ChapterList.DataBind();
????????????if?(operate?==?1?&&?dataset.Tables.Count?==?2)
????????????{
????????????????this.Hidden_.Value?=?topicid?+?““?+?chapterid;
????????????????this.Button_Add.Text?=?“修改章節“;
????????????????chaptername?=?dataset.Tables[1].Rows[0][“chapter“].ToString();
????????????????if?(File.Exists(Server.MapPath(path+?dataset.Tables[1].Rows[0][“path“].ToString())))
????????????????????chaptercontent?=?File.ReadAllText(Server.MapPath(path+?dataset.Tables[1].Rows[0][“path“].ToString())?System.Text.Encoding.Default).Replace(“
““\n“);
????????????}
????????}
????}
????protected?void?Button_Add_Click(object?sender?EventArgs?e)
????{
????????if?(Request.Form[“Text_Chapter“]?!=?null?&&?Request.Form[“Text_Content“]?!=?null?&&?Request.QueryString[“topicid“]?!=?null?&&?Regular.IsId(Request.QueryString[“topicid“].ToString()))
????????{
????????????string?novelinfo?=?this.Hidden_.Value;
????????????string?chapter?=?Regular.Filtrate(Request.Form[“Text_Chapter“].ToString().Trim());
????????????string?content?=?Regular.Filtrate(Request.Form[“Text_Content“].ToStrin
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1108??2008-05-28?09:44??user\detection.aspx
?????文件????????837??2007-05-07?11:14??user\detection.aspx.cs
?????文件????????452??2008-05-28?09:44??user\exit.aspx
?????文件????????614??2007-05-07?11:34??user\exit.aspx.cs
?????文件???????2241??2008-05-28?09:44??user\getpass.aspx
?????文件???????2335??2007-06-18?14:01??user\getpass.aspx.cs
?????文件???????2445??2008-05-28?09:44??user\modify.aspx
?????文件???????2334??2007-06-18?14:01??user\modify.aspx.cs
?????文件???????1646??2008-05-28?09:44??user\password.aspx
?????文件???????1987??2007-06-18?14:03??user\password.aspx.cs
?????文件????????681??2007-05-09?17:58??user\password.js
?????文件???????3770??2008-05-28?09:44??user\register.aspx
?????文件???????2535??2007-06-18?14:04??user\register.aspx.cs
?????文件???????2309??2007-06-18?14:48??user\register.js
?????文件????????676??2007-06-06?12:04??user\st
?????目錄??????????0??2008-05-28?14:42??user
?????文件???????2133??2008-05-28?15:35??51aspx源碼必讀.txt
?????文件???????3790??2008-05-28?09:44??addchapter.aspx
?????文件???????4937??2007-07-14?17:34??addchapter.aspx.cs
?????文件???????3283??2008-05-28?09:44??addnovel.aspx
?????文件???????5949??2007-07-11?13:39??addnovel.aspx.cs
?????文件????????451??2007-06-01?11:56??ajaxcontent.aspx
?????文件???????4172??2007-07-23?14:30??ajaxcontent.aspx.cs
?????文件???????2169??2008-05-28?09:44??cookie.aspx
?????文件???????1662??2007-05-07?11:14??cookie.aspx.cs
?????文件??????13614??2008-05-28?14:53??default.aspx
?????文件???????1420??2007-07-03?14:04??default.aspx.cs
?????文件??????75862??2008-05-28?14:53??default.htm
?????文件???????4934??2008-05-28?09:44??editnovel.aspx
?????文件???????3905??2007-06-18?14:00??editnovel.aspx.cs
............此處省略149個文件信息
評論
共有 條評論