private void ddlBranch_SelectedIndexChanged(object sender, EventArgs e) { if (ddlBranch.SelectedIndex > 0) { dbc.BindEmployeeByBranch(ddl_EmployeeName, Convert.ToInt32(ddlBranch.SelectedValue)); } else { dbc.BindUserName_Allocate(ddl_EmployeeName); } }