WebUI/UI/LiuYan.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;
namespace WebUI.UI
{
    public partial class LiuYan : System.Web.UI.Page
    {
        public string _funType = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request["funType"] != null)
                {
                    _funType = Request["funType"].ToString();
                }
                this.txtCreateBy.Value = Session["Account"] != null ? Session["Account"].ToString() : "游客";
            }
            switch (_funType)
            {
                case "Save":
                    Save();
                    break;
            }
        }
        /// <summary>
        /// 保存数据
        /// </summary>
        private void Save()
        {
            string contents = Request["contents"].ToString();
            string createBy = Request["createBy"].ToString();
            string strCmd = " insert into LiuYan ( Contents,CreateBy,CreateTime ) values ( '" + contents + "','" + createBy + "','" + DateTime.Now.ToString() + "' ) ";
            DbHelperSQL.ExecuteSql(strCmd);
            Response.Write("1");
            Response.End();
        }
    }
}

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

AI 解读 AI

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

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