有没有更好、更干净的方法来设置 selected="true" ?也许是嵌套的 if?
<select id="State" name="State" if="(Model.StateList.Count() > 0 )" >
<option value="">Select One</option>
<for each="KeyValuePair<string, string> item in Model.StateList">
<option value="${item.Value}" if="(Model.State == item.Value)" selected="true" >${item.Key}</option>
<option value="${item.Value}" if="(Model.State != item.Value)">${item.Key}</option>
</for>
</select>