A
Andy B.
I have a databound DropDownList in the HeaderTemplate of a DataList. When I
run the page, the databound items appear twice in the DropDownList. I get my
data from an entity framework link back to a database. So, instead of having
these items: View all years, 2009, 2004 I have this: View all years, 2009,
2004, 2009, 2004. Any idea how to fix this? Just a note that whenever I
remove the DropDownList from the headerTemplate and put the
datasource/databind for the DropDownList in an if not IsPostBack block
everything works fine.
run the page, the databound items appear twice in the DropDownList. I get my
data from an entity framework link back to a database. So, instead of having
these items: View all years, 2009, 2004 I have this: View all years, 2009,
2004, 2009, 2004. Any idea how to fix this? Just a note that whenever I
remove the DropDownList from the headerTemplate and put the
datasource/databind for the DropDownList in an if not IsPostBack block
everything works fine.