0
我想用做POST請求下面的代碼我怎樣才能在ajaxoption POST請求的數據從輸入剃刀
<div class="editor-field" id="updateDiv" >
@Html.EditorFor(model => model.UserName)
@Html.ValidationMessageFor(model => model.UserName)
</div>
<div>
@Ajax.ActionLink("Check Availability", "ValidateUsername", "Wizard",
new { username = "username"},
new AjaxOptions() {
UpdateTargetId = "msg",
HttpMethod = "POST",
LoadingElementId = "progress",
}
)
</div>
但是,而不是通過一個靜態值,我想傳遞的@Html.EditorFor(model => model.UserName)
值(用戶inputed價值),我該怎麼做?