@using (Ajax.BeginForm("RespondToFollowRequest", ajaxOptions))
{
<input type="hidden" name="followerID" value="@Model.MemberIdSentFrom" />
<div>
<input class="Acceptbutton" type="submit" value="Accept"
name="btnAccept" id="btnAccept" />
</div>
}
它的 HTML 渲染是
<input type="hidden" value="68aad827-3993-4a21-9846-731486409b1a" name="followerID">
<div>
<input id="btnAccept" class="Acceptbutton" type="submit" name="btnAccept" value="Accept">
</div>
虽然我在同一个局部视图中有另一个按钮,并且呈现为:
<form id="form1" method="post" data-ajax-update="#tblNotification" data-ajax-mode="replace" data-ajax="true" action="/Notification/RespondToFollowRequest">
<input type="hidden" value="68aad827-3993-4a21-9846-731486409b1a" name="followerID">
<div>
<input id="btnReject" class="Rejectbutton" type="submit" name="btnReject" value="Reject">
</div>
</form>
谁能帮我找出为什么会这样?