// Branch Selected Changed #region [Branch] protected void ddlBranch_SelectedIndexChanged(object sender, EventArgs e) { try { int orgID = Convert.ToInt32(DDL_SelectCollege.SelectedValue); int Branch_ID = Convert.ToInt32(ddlBranch.SelectedValue); objEWA.OrgID = orgID; objEWA.Branch_ID = Branch_ID; ds = objBAL.BL_BindClass(objEWA); ddlClass.DataSource = ds; ddlClass.DataTextField = "ClassName"; ddlClass.DataValueField = "ClassId"; ddlClass.DataBind(); ddlClass.Items.Insert(0, "Select"); } catch (Exception) { ddlClass.Text = "Select"; //throw; } }