Web/blogpost.aspx.cs

(开头部分) 8KB

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

using System;
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;
using COCOWO.COMP;
using COCOWO.DB;

public partial class blogpost : System.Web.UI.Page
{
    blog_Category Blog_Category = new blog_Category();
    blog_Content Blog_Content = new blog_Content();
    blog_tag Blog_tag = new blog_tag();
    blog_module Blog_module = new blog_module();
    protected void Page_Load(object sender, EventArgs e)
    {
        UBBconfigl1.UBB_Form = "Message";
        UBBconfigl1.UBB_AutoHidden = false;

        if (!this.IsPostBack)
        {
            if (UsersInfo.GetUserCode.Substring(3, 1) == "1" && QueryString.GetId != null && QueryString.GetAction == null)
                BindUP();
            else if (UsersInfo.GetUserCode.Substring(5, 1) == "1" && QueryString.GetAction == "del" && QueryString.GetId != null)
                BindDELETE();
            else if (UsersInfo.GetUserCode.Substring(0, 2) == "11")
                BindGrid();
            else
                Jscript.JavaScriptLocationHref("Default.aspx");
        }
    }
    private void BindGrid()
    {
        DataView mydv = Blog_Category.Category_List();
        if (UsersInfo.GetUserCode.Substring(0, 2) == "11")
        {
            Panel1.Visible = true;
            Panel2.Visible = false;
            DownList_CateID.Items.Add(new ListItem("选择日志分类", "0"));
            for (int i = 0; i < mydv.Count; i++)
            {
                DownList_CateID.Items.Add(new ListItem(mydv[i]["cate_Name"].ToString(), mydv[i]["cate_ID"].ToString())); ;
            }
            DownList_CateID2.DataSource = mydv;
            DownList_CateID2.DataTextField = "cate_Name";
            DownList_CateID2.DataValueField = "cate_ID";
            DownList_CateID2.DataBind();
        }
        else
            Jscript.JavaScriptLocationHref("Default.aspx");
    }
    private void BindUP()
    {
        DataView mydv = Blog_Content.Content_Info(QueryString.GetId);
        if ((UsersInfo.GetUserCode.Substring(2, 2) == "11" || (UsersInfo.GetUserCode.Substring(2, 2) == "01" && UsersInfo.GetUserName == mydv[0]["log_Author"].ToString())) && QueryString.GetId != null && QueryString.GetAction == null)
后面还有 156 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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