コード例 #1
0
 protected void hdnRetrive_Click(object sender, EventArgs e)
 {
     try
     {
         VET_Get_QuestionnaireDetails();
         VET_Get_QuestionList();
         VET_Get_SectionList();
         UpdPnlEdit.Update();
     }
     catch (Exception ex)
     {
         UDFLib.WriteExceptionLog(ex);
         string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
         ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
     }
 }
コード例 #2
0
    protected void onDelete(object source, CommandEventArgs e)
    {
        int Question_ID = Convert.ToInt32(e.CommandArgument);

        try
        {
            BLL_VET_Questionnaire objBLLQuest = new BLL_VET_Questionnaire();
            int res = objBLLQuest.VET_Del_Question(Question_ID, Convert.ToInt32(Session["USERID"]));
            if (res > 0)
            {
                VET_Get_QuestionnaireDetails();
                VET_Get_QuestionList();
                VET_Get_SectionList();
                UpdPnlEdit.Update();
            }
        }
        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
            string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
        }
    }