![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Thanks all in advance! I use Visual Web Studio (Visual Basic.net) for my web site. How can I use the following HTML list of countries within my Visual Basic.net code to fill a DropDownBox I'm placing on my .aspx page? select name="countryid" size="1" id="countryid" class="field_textbox" size="50" option value="0">Select your country</option option value="1">Afghanistan</option option value="2">Albania</option option value="3">Algeria</option option value="4">American Samoa</option //delete section to save psting space option value="210">United States</option option value="228">United States Minor Outlying Islands</option option value="211">Uruguay</option option value="212">Uzbekistan</option option value="213">Vanuatu</option option value="214">Venezuela</option option value="215">Vietnam</option option value="216">Virgin Islands</option option value="218">Wallis and Futuna</option option value="219">Western Sahara</option option value="220">Yemen</option option value="221">Yugoslavia</option option value="50">Zaire</option option value="222">Zambia</option option value="223">Zimbabwe</option /select Does the list change frequently? I suspect not. Why not populate at design |
#3
| |||
| |||
|
|
Does the list change frequently? I suspect not. Why not populate at design time or create a simple text file from which to populate your list?- Hide quoted text - - Show quoted text - |
#4
| |||
| |||
|
|
This list would rarely change. I'm a newbie and happened upon this html by looking at an existing website. So I thought - neat. Tell me more about how to populate at design time. Also I tried a table in my SQL database and dragged it over to my aspx in design view then was at a loss as to what to do next. I did a rebuild and the page failed so I didn't go further. Any help would be appreciated. Thanks! Does the list change frequently? I suspect not. Why not populate at design time or create a simple text file from which to populate your list?- Hide quoted text - - Show quoted text - In design mode, you can access the Items collection of the list/combo box |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |