Hi,
I have hard coded and added items to dropdownlist ie teamsize as 1,2,3 like that.
When i load this dropdownlist for edit/update i get duplicate values like this
1
2
3
4... How do i eliminate this duplicate values?
I don't see any problem here. Remove the ListItems from dropdowns in ASPX
Sir,
I dont understand where the mistake is ?
In the ASPX you will have default Items. Since you are binding from database. Remove it
After binding the dropdownlist i also need the default value at 0th index i have -Select- according to requirement.. You mean i must remove the item at 0th index?
No. Not that. Other than that if any. Since your code is fine and I see no reason for duplicates. Can you paste one dropdown HTML so that I can see it
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.