protected void btnSubmit_Click(object sender, EventArgs e) { try { clsMemberQuestions obj = new clsMemberQuestions(); obj.ActivityId = Convert.ToInt32(ddlActivityName.SelectedValue); obj.QuestionDescription = txtDesc.Text; int j = obj.InsertActivityQuestionMaster(); mainPanel.Enabled = false; System.Threading.Thread.Sleep(2000); mainPanel.Enabled = true; if (j == 1) { ClearData(); lblMsg.Text = "Your Question Submitted..."; } else { lblMsg.Text = "Error in submitting Data."; } } catch (Exception ex) { mainPanel.Enabled = false; System.Threading.Thread.Sleep(2000); mainPanel.Enabled = true; lblMsg.Text = ex.Message; } }
protected void btnSubmit_Click(object sender, EventArgs e) { try { clsMemberQuestions obj = new clsMemberQuestions(); obj.ActivityId = Convert.ToInt32(ViewState["ActivityId"]); obj.QuestionId = Convert.ToInt32(ddlQuestionId.SelectedValue); obj.strAnswerProvided = txtAnswer.Text; obj.Description = txtFileDesc.Text; if (ViewState["AttachFile"] != "") { obj.DocFileName = Convert.ToString(ViewState["AttachFile"]); } else obj.DocFileName = Convert.ToString("No File"); int i = obj.InsertActivityQuestionAnswerMaster(); System.Threading.Thread.Sleep(2000); if (i == 1) { lblMsg.Text = "Your Answer Posted.."; } } catch (Exception ex) { lblMsg.Text = ex.Message; } }
protected void btnSubmit_Click(object sender, EventArgs e) { try { clsMemberQuestions obj = new clsMemberQuestions(); obj.ActivityId = Convert.ToInt32(ddlActivityName.SelectedValue); obj.QuestionDescription = txtDesc.Text; int j = obj.InsertActivityQuestionMaster(); mainPanel.Enabled = false; System.Threading.Thread.Sleep(2000); mainPanel.Enabled = true; if (j == 1) { ClearData(); lblMsg.Text = "Your Question Submitted..."; } else lblMsg.Text = "Error in submitting Data."; } catch (Exception ex) { mainPanel.Enabled = false; System.Threading.Thread.Sleep(2000); mainPanel.Enabled = true; lblMsg.Text = ex.Message; } }
protected void btnSubmit_Click(object sender, EventArgs e) { try { clsMemberQuestions obj = new clsMemberQuestions(); obj.ActivityId = Convert.ToInt32(ViewState["ActivityId"]); obj.QuestionId = Convert.ToInt32(ddlQuestionId.SelectedValue); obj.strAnswerProvided = txtAnswer.Text; obj.Description = txtFileDesc.Text; if (ViewState["AttachFile"] != "") { obj.DocFileName = Convert.ToString(ViewState["AttachFile"]); } else { obj.DocFileName = Convert.ToString("No File"); } int i = obj.InsertActivityQuestionAnswerMaster(); System.Threading.Thread.Sleep(2000); if (i == 1) { lblMsg.Text = "Your Answer Posted.."; } } catch (Exception ex) { lblMsg.Text = ex.Message; } }
protected void btnSubmit_Click(object sender, EventArgs e) { try { clsMemberQuestions obj = new clsMemberQuestions(); obj.ActivityId = Convert.ToInt32(ddlActivityName.SelectedValue); obj.VillageId = Convert.ToInt32(ddlVillage.SelectedValue); obj.QuestionDescription = txtDesc.Text; obj.MemberId = Convert.ToInt32(Session["MemberId"]); mainPanel.Enabled = false; System.Threading.Thread.Sleep(2000); mainPanel.Enabled = true; string strMsg = obj.MemberActivityQuestionraiseMaster(); ClearData(); lblMsg.Text = strMsg; } catch (Exception ex) { lblMsg.Text = ex.Message; } }
protected void btnSubmit_Click(object sender, EventArgs e) { try { clsMemberQuestions obj = new clsMemberQuestions(); obj.ActivityId = Convert.ToInt32(ddlActivityName.SelectedValue); obj.VillageId = Convert.ToInt32(ddlVillage.SelectedValue); obj.QuestionDescription = txtDesc.Text; obj.MemberId = Convert.ToInt32(Session["MemberId"]); mainPanel.Enabled = false; System.Threading.Thread.Sleep(2000); mainPanel.Enabled = true; string strMsg = obj.MemberActivityQuestionraiseMaster(); ClearData(); lblMsg.Text = strMsg; } catch (Exception ex) { lblMsg.Text = ex.Message; } }