Beispiel #1
0
 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();
         }
     }
 }
Beispiel #2
0
 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();
     }
 }