示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //throw new Exception(QuestionID.ToString());
        JobPost_Question ObjQuestion = new JobPost_Question(ID);

        LblQuestion.Text = ObjQuestion.QuestionName;
    }
示例#2
0
 protected void BtnAddQuestion_Click(object sender, EventArgs e)
 {
     if (this.IsValid == true)
     {
         //throw new Exception("hi");
         int QuestionId = JobPost_Question.AddJobPost_Question(int.Parse(Request.QueryString["Id"]), DateTime.Now, TxtQuestion.Text, "Active");
         TxtQuestion.Text            = string.Empty;
         DivAddQuestionModal.Visible = false;
         ShowQuestions();
     }
 }
示例#3
0
 public void ShowQuestions()
 {
     PlaceHolder1.Controls.Clear();
     //throw new Exception("Show Question");
     foreach (DataRow ObjRow in JobPost_Question.GetJobPost_QuestionRecords("JobPostId=" + Request.QueryString["Id"]).Rows)
     {
         JobPost_ViewQuestion ObjViewQuestion = (JobPost_ViewQuestion)this.LoadControl("ViewQuestion.ascx");
         ObjViewQuestion.ID = (int)ObjRow["Id"];
         PlaceHolder1.Controls.Add(ObjViewQuestion);
     }
     //Page_Load(null, null);
 }