<select name="state_name" id="select-state" class="lcd-select lcd-border">
<option value="state_select" selected>Please Select a State</option>
<% while(state_result.next()){ %>
<option>
<%= state_part1 = state_result.getString("state_abbr")%>
<%= state_part2 = state_result.getString("state_name")%>
</option>
<% } %>
</select>
我需要使用javaScript选择第二个字符串吗? 请有人帮帮我。 提前谢谢。
答案 0 :(得分:1)
我的建议是:
Database.SetInitializer(new MusicStoreDataContextInitializer());
MusicStoreDataContext db = new MusicStoreDataContext();
db.Database.Initialize(true);