Example #1
0
        /// <summary>
        /// 提交客户评论
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnsubmit_Click(object sender, EventArgs e)
        {
            tbLevelwords words = new tbLevelwords()
            {
                createdate = DateTime.Now,
                isDel = false,
                LevelWords = content.Value,
                UserName = txtusername.Text.ToString().Length == 0 ? "匿名用户" : txtusername.Text,
                proid = int.Parse(Request.QueryString["proid"].ToString()),
                type = "产品点评"
            };
            ProBLL pbll = new ProBLL();
            if (pbll.proLevelWords(words) != 0)
            {
                ClientScript.RegisterStartupScript(this.GetType(), "test", "alert('评论添加成功,需审核后显示')", true);
                return;

            }
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     BLL.ProBLL pbll = new ProBLL();
     p = pbll.GetModel(1);
 }