Beispiel #1
0
 private void BindExamList()
 {
     try
     {
         DataTable dt = new DataTable();
         objML_StudentProfile.ID = Session["Username"].ToString();
         dt = objBL_StudentProfile.BL_BindStudentExamList(objML_StudentProfile);
         if (dt.Rows.Count > 0)
         {
             dlExamList.DataSource = dt;
             dlExamList.DataBind();
             pnl.Visible = true;
         }
         else
         {
             lblMultiMsg.Text    = "No Records found";
             sectiontype.Visible = false;
             pnl.Visible         = false;
         }
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('" + ex.Message.ToString() + "')", true);
     }
 }