Hi All
I have droplistlist populated from database.When i add records everthing is ok with the dropdownlist: but when i edit records it shows duplicate values like
High
Medium
Low
Medium
how can i romove duplicate values?
fawadkhalil
0
Junior Poster in Training
Recommended Answers
Jump to Posthi,
may be your dropdownlist values are concatenating with previous values.check that once.did u assign appenddataitems to true for the droddownlist.i would like to see u r code to help u more.
Jump to PostHI,
Try like this.what u are doing is you are assinging the values of edited datareader values to the already selected dropdownlist.so you are getting that error.
ddlist.Items.FindByText(dr("Priority") ).Selected = true;
All 8 Replies
greeny_1984
14
Posting Whiz
fawadkhalil
0
Junior Poster in Training
fawadkhalil
0
Junior Poster in Training
greeny_1984
14
Posting Whiz
srikanthkadem
0
Junior Poster in Training
fawadkhalil
0
Junior Poster in Training
greeny_1984
14
Posting Whiz
sup1991
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.