Switch to full style
ASP/ASP.net examples
Post a reply

fill selection options from list

Tue Apr 05, 2011 10:11 pm

fill selection options from list in asp.Following code populate content of strings array to html selection element.
Code:
<% 
selectionContent 
= "Red|Green|Blue|Black" 
%>
Please select your favourit color :  
<Select Name="drop">
  <% 
listColors 
= Split(selectionContent, "|") 
For i 
= 0 to UBound(listColors) 
%> 
<option value=""<%=listColors(i)%>"><%=listColors(i)%>
  <%Next%> 
</Select>




Post a reply
  Related Posts  to : fill selection options from list
 Doubt in html:options tag     -  
 Fill in a shape     -  
 Draw Fill Rectangle     -  
 How to fill a ComboBox with data from a database in jsp     -  
 Fill DataGrid In Connected Mode     -  
 selection sort     -  
 C++ Selection Sort     -  
 Help with selection sort for strings?     -  
 calculate data from multiple selection     -  
 Good looking selection box with image per option     -  

Topic Tags

ASP Forms