Help.Web/Admin/HelpAdd.aspx.cs

(开头部分) 2KB

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

//===========================================================
//==                (c)2007 24xN Inc.                      ==
//==         QQ:6458450,Email:qwsf01115@163.com            ==
//==               Site:http://www.24xn.com                ==
//==               论坛:http://bbs.24xn.com                ==
//==                  Code By Xi.Deng                      ==
//==                     版权所有                          ==
//===========================================================
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 Help.Model;

public partial class Admin_HelpAdd : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.Check();
        Help.BLL.Help h = new Help.BLL.Help();
        CopyrightInfo.InnerHtml = h.getCopyRight();

        Response.CacheControl = "no-cache";
        string parentID = Help.Common.Public.Filter(Request.QueryString["ParentID"]);
        if (parentID != "" && parentID!=null)
        {
            ParentID.Text = parentID;
        }
        else
        {
            ParentID.Text = "0";
        }
        OrderID.Text = "0";
    }


    protected void Button1_Click(object sender, EventArgs e)
    {
        Help.Model.HelpInfo hi = new HelpInfo();
        hi.Title = Title.Text;
        hi.Content = ContentTextBox.Content;
        hi.ParentID =  ParentID.Text;
        hi.OrderID = int.Parse(OrderID.Text);
        hi.Interfix = Interfix.Text;

        hi.ClassID = "";
        hi.ID = 0;
        hi.AddTime = System.DateTime.Now;
       
        Help.BLL.Help h = new Help.BLL.Help();
        int result = h.Add(hi);
        if (result == 1)
            WebLog.PageRight("添加信息成功!", "");
        else
后面还有 3 行代码,解锁后查看完整代码

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

AI 解读

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

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