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?
Well this will work. Other than this there's no way to clear dropdown.
Wherever you bind the dropdown.
You call the functions in following order
ddl.Items.clear();
ddl.DataSource = dt;
ddl.DataBind();
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.