我有以下代码:
@using (Html.BeginForm("CreditCard", "Deposit", FormMethod.Post, new { @class = "depositForm" }))
{
<h2>@WebContent.Get("Self Deposit", "dbns500 - register - claim", false, "CLAIM YOUR BONUS")</h2>
<div class="clearfix wrp-stap wrp-stap2">
<i class="fa fa-check" aria-hidden="true"></i><hr />
<i class="fa fa-check" aria-hidden="true"></i><hr />
<i class="fa-num" aria-hidden="true">3</i>
</div>
<div class="row">
<div>
<div data-toggle="buttons">
<div id="item_container" data-toggle="buttons" class="wrp-buttons">
<label class="btn btn-primary">
<span class="wrp-text">
<span class="title">
<b>@Html.RadioButtonFor(a => a.Amount, 200, new { @type = "radio" }) @AmountAndConversion(200)</b>
@WebContent.Get("Self Deposit", "dbns500 - deposit - bonus", false, "BONUS")
</span>
<span class="h6">
@WebContent.Get("Self Deposit", "dbns500 - deposit - 200", false, "On a $200 deposit")
</span>
<i class="fa fa-plus-circle" aria-hidden="true"></i>
<span class="h5">
@WebContent.Get("Self Deposit", "dbns500 - deposit - FreeBook", false, "A Free ebook")
<i class="fa fa-check" aria-hidden="true"></i>
</span>
</span>
</label>
<label class="btn btn-primary active">
<span class="wrp-text">
<span class="title">
<b>@Html.RadioButtonFor(a => a.Amount, 500, new { @type = "radio", @checked = "checked" }) @AmountAndConversion(500)</b>
@WebContent.Get("Self Deposit", "dbns500 - deposit - bonus", false, "BONUS")
</span>
<span class="h6">@WebContent.Get("Self Deposit", "dbns500 - deposit - 1000", false, "On a $1000 deposit")</span>
<i class="fa fa-plus-circle" aria-hidden="true"></i>
<span class="h5">
@WebContent.Get("Self Deposit", "dbns500 - deposit - FreeBook", false, "A Free ebook")<br />
@WebContent.Get("Self Deposit", "dbns500 - deposit - Free1X1", false, "Free 1X1 Trading session<br /> 3 Secured Trades")
<i class="fa fa-check" aria-hidden="true"></i>
</span>
</span>
</label>
<label class="btn btn-primary">
<span class="wrp-text">
<span class="title">
<b>@Html.RadioButtonFor(a => a.Amount, 300, new { @type = "radio" }) @AmountAndConversion(300)</b>
@WebContent.Get("Self Deposit", "dbns500 - deposit - bonus", false, "BONUS")
</span>
<span class="h6">@WebContent.Get("Self Deposit", "dbns500 - deposit - 500", false, "On a $500 deposit")</span>
<i class="fa fa-plus-circle" aria-hidden="true"></i>
<span class="h5">
@WebContent.Get("Self Deposit", "dbns500 - deposit - FreeBook", false, "A Free ebook")<br />
@WebContent.Get("Self Deposit", "dbns500 - deposit - Free1X1", false, "Free 1X1 Trading session<br /> 3 Secured Trades")
<i class="fa fa-check" aria-hidden="true"></i>
</span>
</span>
</label>
</div>
</div>
</div>
</div>
}
由于某种原因,没有检查单选按钮 - 它保持默认的选中状态。 有什么原因吗?