下面的代码表示PartialView中的搜索表单结构。部分视图以多个页面呈现。任何postpack都会将所选单选按钮重置为第一个单选按钮。在这种情况下如何保持所选单选按钮的状态?
@using (Html.BeginForm("Action", "Controller"))
{
<div class="btn-group">
<a class="btn btn-default dropdown-toggle btn-select" data-toggle="dropdown" href="#">Options<span class="test"></span></a>
<ul class="dropdown-menu ui-tabs-active">
<li><input id="All" type="radio" checked="checked" value="Value1" name="SelectedOptions"> <span>Option 1</span></li>
<li><input type="radio" value="Value2" name="SelectedOptions"> <span>Option 2</span></li>
<li><input type="radio" value="value3" name="SelectedOptions"> <span>Option 3</span></li>
</ul>
</div>
<input id="search-box" type="text">
<button id="search-button" class="btn-link glyphicon glyphicon-search" formmethod="post"></button>
}