protected void grdQuestion_RowDeleting(object sender, GridViewDeleteEventArgs e) { int ID = UDFLib.ConvertToInteger(grdQuestion.DataKeys[e.RowIndex].Value.ToString()); string Mode = "D"; BLL_Infra_DrillQuestionnaire.INS_UPD_DEL_Question(ID, "", null, Convert.ToInt32(Session["USERID"]), Mode); Bind_Question(); Bind_Grading(); }
protected void btnSaveAndAdd_Click(object sender, EventArgs e) { int ID = BLL_Infra_DrillQuestionnaire.INS_UPD_DEL_Question(null, txtQuestion.Text.Trim(), Convert.ToInt32(ddlGradingType.SelectedValue), Convert.ToInt32(Session["USERID"]), "A"); txtQuestion.Text = ""; Bind_Question(); Bind_Grading(); ClearControls_Question(); }
protected void grdQuestion_RowUpdating(object sender, GridViewUpdateEventArgs e) { int ID = UDFLib.ConvertToInteger(grdQuestion.DataKeys[e.RowIndex].Value.ToString()); string Question = e.NewValues["Question"].ToString(); int Grading_Type = UDFLib.ConvertToInteger(e.NewValues["Grading_Type"].ToString()); BLL_Infra_DrillQuestionnaire.INS_UPD_DEL_Question(ID, Question, Grading_Type, Convert.ToInt32(Session["USERID"]), "M"); grdQuestion.EditIndex = -1; Bind_Question(); Bind_Grading(); }