1
내 모델의보기로 조치에 게시 할 수 있습니까? 그 형태의 일부가 아닙니다. myRecord.someValue를 nextRelease 액션에 인수로 전달하고, 폼의 아무 곳에 나 배치하지 않고 작업하기 만하면됩니다.조치 게시, mvc 3, 서식의 일부가 아닙니다.
보기 :
@model myModel
@using (Html.BeginForm("Search", "News", FormMethod.Get, new { id = "myform" }))
{
<div>myModel.someValue</div> //to show it has this field
<script type="text/javascript">
$('#nextbutton').click(function() {
$('#myform').attr("action", "/@controller.Language/news/nextRelease");
$("#submit").click();
});
</script>
}