![]() |
| |||||||
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| A common question that I see posted all over the place is "How can I programmatically select an item in my dropdownlist or listbox based off a certain value?" It's actually quite simple and here's how to do it: Code: For Each Item As ListItem In MyListBox.Items
If Item.Value = "4" Then
Item.Selected = True
End If
Next
__________________ jmurrayhead Did I help you out? Make me popular by clicking the icon!If you found a post helpful, please click the button in the lower right-hand corner of the post.Powered by ASP.Net |
| Sponsored Links |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Select Top 1 Unique Record | BLaaaaaaaaaarche | SQL Development | 13 | April 17th, 2008 09:12 AM |
| Select latest dates | Wolffy | SQL Development | 2 | April 11th, 2008 09:25 AM |
| sQL select add '%' next to value | peebman2000 | SQL Development | 8 | March 28th, 2008 10:21 AM |
| Programmatically Add Item to Validation Summary | jmurrayhead | .Net | 0 | March 20th, 2008 09:41 AM |
| Sponsored Links |
| ASP.NET Resource Index a directory of ASP.NET tutorials, applications, scripts, assemblies and articles for the novice to professional developer. Free Web Directory Including Chats and Forums Resources, Offer automatic, instant and free directory submissions. | URLZ Web Directory URLZ Web Directory Free Web Directory - Add Your Link The Little Web Directory | Free Web Directory Pegasus free web directory is a free directory organised by categories. Web Directory & SEO Services dirroot web directory |