FLOWER/UserPL.aspx.cs

(完整代码) 1KB

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FLOWER
{
    public partial class UserPL : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                if (Session["username"] == null)
                {
                    Response.Redirect("Login.aspx");
                }
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Hashtable ht = new Hashtable();
            ht.Add("bkid", Request["bkid"].ToString());
            ht.Add("orderinfoid", Request["infoid"].ToString());
            ht.Add("orderid", Request["orderid"].ToString());
            ht.Add("userid", Session["userid"].ToString());
            ht.Add("star", StarHidden.Value);
            ht.Add("content", TextBox1.Text);
            if (new Common.SQLHelper().AddContent("usercomment", ht) > 0)
            {
                new Common.SQLHelper().ExecuteSql("update bkorderinfo set ispj = 1 where infoid = " + Request["infoid"].ToString());
                ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), System.DateTime.Now.Ticks.ToString(), "layer.alert('评论成功!', {icon: 1,kin: 'layer-ext-moon',closeBtn: 0 }, function () {  document.location.href = 'UserComment.aspx' ;})", true);
            }
            else
            {
                ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), System.DateTime.Now.Ticks.ToString(), "layer.alert('操作失败!', { icon: 2, kin: 'layer-ext-moon', closeBtn: 0, success: function () { $(':focus').blur(); } });", true);
            }
        }
    }
}

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

AI 解读 AI

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

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