Web/Admin/Vodeo/Add.aspx.cs

(开头部分) 3KB

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

using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;

namespace Web.Admin.Vodeo
{
    public partial class Add : Web.UI.ManagePage
    {
        public BLL.Vodeos bll = new BLL.Vodeos();
        public Model.Vodeos model = new Model.Vodeos();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                chkLoginLevel("addVodeos");
                //绑定类别
                ChannelTreeBind(0, "请选择所属类别...",9, this.ddlClassId);
                if (!string.IsNullOrEmpty(Request.Params["classId"]))
                {
                    ddlClassId.SelectedValue = Request.Params["classId"].Trim();
                }
            }
        }

        //保存
        protected void btnSave_Click(object sender, EventArgs e)
        {
            model.Title = txtTitle.Text.Trim();
            model.Author = txtAuthor.Text.Trim();
            model.Form = txtForm.Text.Trim();
            //自动提取关健字
            if (txtKeyword.Text.Trim() != string.Empty)
            {
                model.Keyword = txtKeyword.Text.Trim();
            }
            else
            {
                model.Keyword = txtTitle.Text.Trim();
            }
            //自动提取摘要
            if (txtZhaiyao.Text.Trim() != string.Empty)
            {
                model.Zhaiyao = Utils.DropHTML(txtZhaiyao.Text, 250);
            }
            else
            {
                model.Zhaiyao = Utils.DropHTML(txtContent.Value, 250);
            }
            //自动提取导读
            if (txtDaodu.Text.Trim() != string.Empty)
            {
                model.Daodu = Utils.DropHTML(txtDaodu.Text, 250);
            }
            else
            {
                model.Daodu = Utils.DropHTML(txtContent.Value, 250);
            }
后面还有 38 行代码,购买后查看完整代码

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

AI 解读 AI

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

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