Beispiel #1
0
        protected void btnedit1_click(object sender, EventArgs e)
        {
            string value = hfd_examid.Value;

            Person_Details.tbl_examdetail obj = Utilities_Licensing.EditExam(Convert.ToInt32(value));
            hfd_examid.Value = obj.exam_id.ToString();
            if (obj.Inter_Score != "" || obj.Inter_Score != null)
            {
                txt_Inter_Score.Text = obj.Inter_Score;
            }
            if (Convert.ToDateTime(obj.NPLEX_DT).ToString("MM/dd/yyyy") != "01/01/1900")
            {
                txt_NPLEXDT.Text = Convert.ToDateTime(obj.NPLEX_DT).ToString("MM/dd/yyyy");
            }
            txt_nplexscr.Text = obj.NPLEX_SCR;
            if (Convert.ToDateTime(obj.MPJE_DT).ToString("MM/dd/yyyy") != "01/01/1900")
            {
                txt_MPJEdate.Text = Convert.ToDateTime(obj.MPJE_DT).ToString("MM/dd/yyyy");
            }
            txt_MPJE_SCR.Text = obj.MPJE_SCR;

            string examtype = "";

            examtype = obj.exam_type.ToString();
            ddl_examtype.ClearSelection();
            if (ddl_examtype.Items.FindByValue(examtype) != null)
            {
                ddl_examtype.Items.FindByValue(examtype).Selected = true;
            }

            string js = "Popup1();";

            ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true);
        }