Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Star
13405 Points
2532 Posts
Jun 21, 2008 04:02 AM|LINK
The easiest way is to just code the html tags
<select name="states"> <option value="NSW">New South Wales</option> <option value="Qld" selected="selected">Queensland</option> <option value="Vic">Victoria</option> </select>
<% var states = new[]{ new {abbrev="Vic", full="Victoria"}, new {abbrev="NSW", full="New South Wales"}, new {abbrev="Qld", full="Queensland"} }; %> <%=Html.DropDownList("States",new SelectList(states, "abbrev", "full", "NSW")) %>
Paul Linton
Star
13405 Points
2532 Posts
Re: Drop Down List NOT from datasource
Jun 21, 2008 04:02 AM|LINK
The easiest way is to just code the html tags
the alternative could be something like Hope that helps