DropDownList AppendDataBoundItems (first item to be blank and no duplicates)

I have a DropDownList inside an UpdatePanel that is populated on postback from a SqlDataSource. It has a parameter which is another control. I sometimes need multiple postbacks, but what happens is that each time the update panel refreshes, items are added to the DropDownList. So the DropDownList ends up having data that is incorrect, or repeated data.

What’s your choice for your next ASP.NET project: Web Forms or MVC?

Let’s say that you will start a new ASP.NET web site/application tomorrow. Would you chose Web Forms or MVC, and why? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the … Read more