Beispiel #1
0
 public void BindFaculty()
 {
     try
     {
         Processing obj = new Processing();
         drpFaculty.DataSource     = obj.BindFaculty();
         drpFaculty.DataTextField  = "EMPName";
         drpFaculty.DataValueField = "EMPID";
         drpFaculty.DataBind();
         drpFaculty.Items.Insert(0, new ListItem("Select", "0"));
         drpFaculty.SelectedIndex = 0;
         //if (!string.IsNullOrEmpty(Convert.ToString(Session["UserId"])))
         //{
         //    //string UserID = Convert.ToString(Session["UserId"]);
         //    //if (Convert.ToString(Session["Role"]) != "Admin" && Convert.ToString(Session["Role"]) != "AdminDept" && Convert.ToString(Session["Role"]) != "Examination")
         //    //{
         //        drpFaculty.Enabled = false;
         //        drpFaculty.SelectedValue = UserID;
         //   // }
         //}
     }
     catch (Exception Ex) { }
 }