Meeting/Html/InfoID.aspx.cs

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication.Html
{
    public partial class InfoID : System.Web.UI.Page
    {
        BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
        BLL.Models.GZXX_Class cbll = new BLL.Models.GZXX_Class();
        public int index = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                if (Request["InfoID"] != null && Request["ChannelID"] != null && Request["ClassID"] != null)
                {
                    Model.Models.GZXX_Class cmodel = new Model.Models.GZXX_Class();
                    Model.Models.GZXX_Model model = new Model.Models.GZXX_Model();
                    model = bll.GetModelInfo(int.Parse(Request.QueryString["ChannelID"]));
                    DataTable dt = bll.GetContentInfo(int.Parse(Request["InfoID"]), model.modeltable);
                    cmodel = cbll.GetClassInfo(int.Parse(Request.QueryString["ClassID"]));
                    if (cmodel.verify == 1 && cmodel.contentinfotemplate != "")
                    {
                        string path = Server.MapPath(cmodel.contentinfotemplate);
                        FileInfo fi = new FileInfo(path);
                        if (fi.Exists)
                        {
                            using (StreamReader sr = new StreamReader(path, Encoding.UTF8))
                            {
                                int line = 0;
                                bool hline = true;
                                bool bline = false;
                                string headhtml = "";
                                while (!sr.EndOfStream)
                                {
                                    //int cline = 0;
                                    string html = string.Empty;
                                    string text = sr.ReadLine();
                                    if (text == "[head]")
                                    {
                                        hline = true;
                                    }
                                    if (text == "[/head]")
                                    {
                                        hline = false;
                                    }
                                    if (text == "[body]")
                                    {
                                        bline = true;
                                    }
                                    if (text == "[/body]")
                                    {
后面还有 128 行代码,购买后查看完整代码

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

AI 解读

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

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