acontent.aspx.cs

(完整代码) 1KB

using System;
using System.IO;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Text;
using System.Text.RegularExpressions;
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 acontent : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["tid"] != null && Regular.IsInt(Request.QueryString["tid"]) && Request.QueryString["cid"] != null && Regular.IsInt(Request.QueryString["cid"]))
        {
            int tid, cid;
            tid = int.Parse(Request.QueryString["tid"]);
            cid = int.Parse(Request.QueryString["cid"]);
            SqlStore sql = new SqlStore();
            DataRowCollection rows = sql.AllCR(tid, cid).Rows;
            StringBuilder content = new StringBuilder(10000);
            string path = Server.MapPath("~/novel/" + tid / 1000 + "/" + tid + "/");
            foreach (DataRow row in rows)
                content.Append("<h3>" + row["ctitle"] + "</h3>" + File.ReadAllText(path + row["cid"] + ".txt", Encoding.UTF8));
            //string content1 = Convert.ToString(content);
            //content1 = Regex.Replace(content1, Common.siftCC, "**");
            Response.Write("document.getElementById('cid" + cid + "').innerHTML='" + content + "';");
            Response.Write("initial();");
        }
        Response.End();
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。