Exemple #1
0
        protected void btSub_Click(object sender, EventArgs e)
        {
            try
            {
                FeedBack m = new FeedBack();

                m.title   = this.tbtitle.Value.Trim();
                m.company = this.tbcompany.Value.Trim();
                m.address = this.tbaddress.Value.Trim();
                // m["zip"] = this.tbzip.Value.Trim();
                m.username = this.tbusername.Value.Trim();
                // m["mobile"] = this.tbmobile.Value.Trim();
                m.phone = this.tbphone.Value.Trim();
                // m["fax"] = this.tbFax.Value.Trim();
                m.email   = this.tbemail.Value.Trim();
                m.content = this.tbcontent.Value;
                m.addtime = DateTime.Now;
                m.flag    = false;
                m.type    = 1;
                FeedBackService.InsertFeedBack(m);
                ShowJs.ShowAndRedirect("感谢您的留言!", Request.Url.ToString(), this.Page);
            }
            catch (Exception)
            {
                ShowJs.ShowAndBack("提交失败!", this.Page);
            }
        }