protected void ImageButton1_Click(object sender, EventArgs e) { ccJoin.ValidateCaptcha(txtCapcha.Text.Trim()); if (!ccJoin.UserValidated) { ErrorMess.Visible = true; txtCapcha.Focus(); lblError.Text = "Mã bảo mật chưa chính xác"; return; } else { try { ETO.Faq faq = ReceiveHtml(); FaqBSO faqBSO = new FaqBSO(); faqBSO.CreateFaq(faq); clientview.Text = String.Format(Resources.Resource.AddNewsSuccessful); lblSucess.Visible = true; lblSucess.Text = "Gửi thắc mắc thành công"; } catch (Exception ex) { clientview.Text = ex.Message.ToString(); } } }
protected void btn_add_Click(object sender, EventArgs e) { try { Faq faq = ReceiveHtml(); FaqBSO faqBSO = new FaqBSO(); faqBSO.CreateFaq(faq); clientview.Text = String.Format(Resources.StringAdmin.AddNewsSuccessful); } catch (Exception ex) { clientview.Text = ex.Message.ToString(); } }