HighTechTalks DotNet Forums  

Creating Dropdown List dynamically and setting the selected value

ASP.net Web Controls microsoft.public.dotnet.framework.aspnet.webcontrols


Discuss Creating Dropdown List dynamically and setting the selected value in the ASP.net Web Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Palmi
 
Posts: n/a

Default Creating Dropdown List dynamically and setting the selected value - 11-06-2007 , 07:59 AM






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

Reply With Quote
  #2  
Old   
PJ on Development
 
Posts: n/a

Default Re: Creating Dropdown List dynamically and setting the selected value - 11-08-2007 , 02:44 AM






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... (AT) discussions (DOT) microsoft.com> wrote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.