YKT_EShop/product/recomment.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YKT_Common;
using YKT_BLL;
using YKT_Model;

namespace YKT_EShop.product
{
    public partial class recomment : BasicPage
    {
        protected int pid = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {

                pid = Input.SetInt(Request["lhpid"]);
                Action = Input.SetString(Request["laction"]);
                string s1 = Input.SetString(Request["txtpCommentContent"]);
                string s2 = Input.SetString(Request["txtpCommentEmail"]);
                string s3 = Input.SetString(Request["txtpCommentUserName"]);
                string s4 = Input.SetString(Request["ddlpmost"]);

                // if (Action == "savecomment")
                {
                    BLLProductComment bll = new BLLProductComment();
                    ModelProductComment model = new ModelProductComment();
                    int ID = bll.GetMaxId();
                    string CommentContent = s1;
                    string CommentName = s3;
                    string CommentEmail = s2;
                    string CommentIP = HTTPS.GetIP;
                    string ProductName = new BLLProduct().GetModel(pid, true).ProductName;
                    DateTime AddDateTime = DateTime.Now;
                    string ReplyComment = "";
                    string ReplyName = "";
                    int Pmost = Input.SetInt(s4);

                    model.ID = ID;
                    model.CommentContent = CommentContent;
                    model.CommentName = CommentName;
                    model.CommentEmail = CommentEmail;
                    model.CommentIP = CommentIP;
                    model.ProductName = ProductName;
                    model.ProductID = pid;
                    model.AddDateTime = AddDateTime;
                    model.ReplyComment = ReplyComment;
                    model.ReplyName = ReplyName;
                    model.Pmost = Pmost;

                    bll.Add(model);

                    Js.AlertAndRedirect("发布成功!", "/product-details-" + pid + ".aspx");
                }
            }
        }
后面还有 12 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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