protected void Page_Load(object sender, EventArgs e) { int OldIndex = CategoryType.SelectedIndex; CategoryType.DataSource = CreateCategoryTypeSource(); CategoryType.DataTextField = "TextField"; CategoryType.DataValueField = "ValueField"; CategoryType.DataBind(); CategoryType.SelectedIndex = OldIndex; int OldIndex2 = ActionList.SelectedIndex; ActionList.DataSource = CreateActionListDataSource(); ActionList.DataTextField = "TextField"; ActionList.DataValueField = "ValueField"; ActionList.DataBind(); ActionList.SelectedIndex = OldIndex2; }