Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Re: Drop Down Lists


Message #1 by "Mingkun Goh" <mangokun@h...> on Mon, 3 Jun 2002 08:32:38
The below statement will insert an item as the first in the DropDownList.

ddlCompany.Items.Insert(0, "Choose one")

If you want, on PostBack, you can do an If-Else to determine that the user 
has selected an value other than the first from the DropDownLost.

Hope it helps
Message #2 by "J Donahue" <jdonahue@f...> on Mon, 3 Jun 2002 14:14:29
Thanks you very much!!!  It helps a lot!

> The below statement will insert an item as the first in the 
DropDownList.

> ddlCompany.Items.Insert(0, "Choose one")

> If you want, on PostBack, you can do an If-Else to determine that the 
user 
h> as selected an value other than the first from the DropDownLost.

> Hope it helps

  Return to Index