资源简介
此网站是采用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个文件信息
相关资源
- Asp.net学生信息管理系统源码
- asp.net C#购物车源代码
- ASP.NET实验室预约管理系统
- 020ASP.NET车辆综合管理系统.zip
- c# 高校档案信息管理系统
- asp.net中c#做的躲避小游戏,希望大家
- ASP.NET C# 工资管理系统
- ASP.NET客户管理系统(毕业设计 C#
- 在线求职系统(C#ASP.NET源码)
- asp.net 在线考试系统及论文
- ASP.Net文件上传管理源码
- 《OA企业办公自动化》asp.net 源码(附
- asp.netc#开发规范
- asp.net 大文件上传(带进度条)
- 通过程序自动填充并提交ASP.NET表单(
- ASP.NET 基础编程文档(PPT电子教案)
-
ASP.NET_xm
l深入编程技术 - asp.net 新闻发布系统源码(附文档以及
- asp.net 简单的Ajax应用
- asp.net 企业官网源码(附数据库)
- asp.net 花语花店销售网站源码(含数据
- ASP.NET资产管理系统源码(附数据库)
- ajax 登录(基于asp.net)
- asp.net 简单新闻发布系统源码(附数据
- asp.net新闻发布系统(源码+数据库+论
- asp.net网上购物系统源码
- ASP.NET 在浏览器中预览文件
- asp.net 生命周期
- asp.net 花语花店销售网站源码(附数据
- asp.net 购物车实现(基于Session)
评论
共有 条评论