Esempio n. 1
0
 public static STD_Question GetSTD_QuestionTypeByQuestionTypeID(int QuestionTypeID)
 {
     STD_Question sTD_Question = new STD_Question();
     SqlSTD_QuestionProvider sqlSTD_QuestionProvider = new SqlSTD_QuestionProvider();
     sTD_Question = sqlSTD_QuestionProvider.GetSTD_QuestionByQuestionTypeID(QuestionTypeID);
     return sTD_Question;
 }
Esempio n. 2
0
 protected void btnUpdate_Click(object sender, EventArgs e)
 {
     try
     {
     STD_Question sTD_Question = new STD_Question ();
     sTD_Question.QuestionID=  int.Parse(Request.QueryString["ID"].ToString());
     sTD_Question.QuestionTypeID=  int.Parse(ddlQuestionTypeID.SelectedValue);
     sTD_Question.Description=  txtDescription.Text;
     sTD_Question.Mark=  int.Parse(txtMark.Text);
     sTD_Question.AddedBy=  "530038e1-cf38-4ddb-84a4-99b6974b4f9d";
     sTD_Question.AddedDate=  DateTime.Now;
     sTD_Question.UpdatedBy=  "530038e1-cf38-4ddb-84a4-99b6974b4f9d";
     sTD_Question.UpdateDate = DateTime.Now;
     bool  resutl =STD_QuestionManager.UpdateSTD_Question(sTD_Question);
     }catch(Exception ex){}Response.Redirect("AdminDisplaySTD_Question.aspx");
 }
Esempio n. 3
0
 public static int InsertSTD_Question(STD_Question sTD_Question)
 {
     SqlSTD_QuestionProvider sqlSTD_QuestionProvider = new SqlSTD_QuestionProvider();
     return sqlSTD_QuestionProvider.InsertSTD_Question(sTD_Question);
 }
Esempio n. 4
0
 public static bool UpdateSTD_Question(STD_Question sTD_Question)
 {
     SqlSTD_QuestionProvider sqlSTD_QuestionProvider = new SqlSTD_QuestionProvider();
     return sqlSTD_QuestionProvider.UpdateSTD_Question(sTD_Question);
 }
Esempio n. 5
0
 private void showSTD_QuestionData()
 {
     STD_Question sTD_Question  = new STD_Question ();
      	sTD_Question = STD_QuestionManager.GetSTD_QuestionByQuestionID(Int32.Parse(Request.QueryString["ID"]));
      	ddlQuestionTypeID.SelectedValue  =sTD_Question.QuestionTypeID.ToString();
      	txtDescription.Text =sTD_Question.Description.ToString();
      	txtMark.Text =sTD_Question.Mark.ToString();
      	string txtUpdatedBy_Text =sTD_Question.UpdatedBy.ToString();
      	string txtUpdateDate_Text =sTD_Question.UpdateDate.ToString();
 }