Backup/WebApp/Admin/DownLoad_Editor.aspx.cs

(开头部分) 6KB

这里只显示每个文件的开头 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 RM.Common;

namespace RM.WebApp.Admin
{
    public partial class DownLoad_Editor : AdminBasic
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            

            if (!IsPostBack)
            {
                FileUploadImg.Attributes.Add("onchange", "Upload_OnChange(this,'txtImgUrl','ImageState');");
                FileUploadFile.Attributes.Add("onchange", "Upload_OnChange(this,'txtFileUrl','FileState');");

                string str = Request.QueryString["ID"];

                RM.Entity.Download MyDown;
                RM.BLL.Download DownBLL = new RM.BLL.Download();

                if (OperateText.IsNumber(str))
                {
                    MyDown = DownBLL.GetEntity(Convert.ToInt32(str));
                    lblAction.Text = "修改";
                    btnCancel.Visible = true;
                    btnCancel.Attributes.Add("onclick", "history.back();return false;");
                }
                else
                {
                    MyDown = new RM.Entity.Download();
                    lblAction.Text = "新增";
                    btnCancel.Visible = false;
                }

                hfDownID.Value = MyDown.ID.ToString();
                txtName.Text = MyDown.Name;
                txtImgUrl.Text = MyDown.ImageUrl;
                txtFileUrl.Text = MyDown.FileUrl;
                txtcontent.Text = MyDown.Content;
                txtCreateTime.Text = MyDown.CreateTime.ToString();
                txtModifyTime.Text = MyDown.ModifyTime.ToString();
            }
        }

        protected void btn_Save_Click(object sender, EventArgs e)
        {
            string strErrMsg = "";
            if (txtName.Text.Trim() == "")
            {
                strErrMsg += "标题不能为空.\\r\\n";
后面还有 111 行代码,购买后查看完整代码

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

AI 解读 AI

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

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