Home All Groups Group Topic Archive Search About

Creating Dropdown List dynamically and setting the selected value

Author
6 Nov 2007 12:59 PM
Palmi
Hi, I have a problem with setting the select value to items in a dropdown list,
I create dropdown list in a loop and set unique id to it but I have to set
the selected index in every dropdown list but not the same index.
How can I accomplish that?

thx

Author
8 Nov 2007 7:44 AM
PJ on Development
Hi, Palmi,

After populating the DropDownList, set the desired index.

You just need to know what index you require for each DDL.

Regards,

Paulo Santos
http://pjopndevelopment.50webs.com

On Nov 6, 9:59 am, Palmi <Pa***@discussions.microsoft.com> wrote:
Show quote
> Hi, I have a problem with setting the select value to items in a dropdown list,
> I create dropdown list in a loop and set unique id to it but I have to set
> the selected index in every dropdown list but not the same index.
> How can I accomplish that?
>
> thx

AddThis Social Bookmark Button