protected void ddlClasses_SelectedIndexChanged(object sender, EventArgs e) { //Populate the Sections dropdown for a Class from DB ddlSection.DataSource = dbops.getSections(ddlClasses.SelectedValue); ddlSection.DataTextField = "section"; ddlSection.DataValueField = "section"; ddlSection.DataBind(); ddlSection.Items.Insert(0, new ListItem("--Select Section--", "0")); }