Hello All,
I am making the conversion to ASP.Net.....
Anyway, I have a question about the dropdown lists. When populating a dropdown list and programming in ASP you were able to populate a dropdown list with the following ASP code for the value and display text:
Ex:
<select name="Name">
<%For i = 0 to 10%>
<option value="<%=i%>">The Display Text</option>
<%Next%>
</select>
Now I know that you can do the same in ASP.Net by databinding and setting the Value and Text properties.
The question is what if I do not want to used databinding. I do not see how you can set the value property....
Please help!
Thankx in advance,
Frandazzo
I am making the conversion to ASP.Net.....
Anyway, I have a question about the dropdown lists. When populating a dropdown list and programming in ASP you were able to populate a dropdown list with the following ASP code for the value and display text:
Ex:
<select name="Name">
<%For i = 0 to 10%>
<option value="<%=i%>">The Display Text</option>
<%Next%>
</select>
Now I know that you can do the same in ASP.Net by databinding and setting the Value and Text properties.
The question is what if I do not want to used databinding. I do not see how you can set the value property....
Please help!
Thankx in advance,
Frandazzo