public void LoadAllTestType()
        {
            List <TestType> allTestTypes = testSetupManager.GetAllTestType();

            TestTypeDropDownList.DataSource     = allTestTypes;
            TestTypeDropDownList.DataTextField  = "TestTypeName";
            TestTypeDropDownList.DataValueField = "Id";
            TestTypeDropDownList.DataBind();

            TestTypeDropDownList.Items.Insert(0, "---SELECT---");
        }
        private void LoadAllTestType()
        {
            //TestSetupManager testSetupManager = new TestSetupManager();
            List <TestType> allTestType = testSetupManager.GetAllTestType();

            testTypeDropDownList.DataSource     = allTestType;
            testTypeDropDownList.DataTextField  = "TestTypeName";
            testTypeDropDownList.DataValueField = "Id";
            testTypeDropDownList.DataBind();
            testTypeDropDownList.Items.Insert(0, "------Select------");
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     LoadAllTest();
     if (!IsPostBack)
     {
         testTypeDropDownList.DataSource     = testSetupManager.GetAllTestType();
         testTypeDropDownList.DataTextField  = "Name";
         testTypeDropDownList.DataValueField = "Id";
         testTypeDropDownList.DataBind();
     }
     if (Session["admin"] != null)
     {
         //Response.Write("Welcome to AdminPanel");
     }
     else
     {
         Response.Redirect("../Index.aspx");
     }
 }