0
から私は、入力されたテキストを次の中からお読みHtml.BeginForm入れ値入力テキスト
@using (Html.BeginForm("AddMeals", "ClientReservations",new { overallCost= $('#mealsOverallCost').value }))
を持っています。
<div id="DivMealsOverallCost">
@Html.Label("Całkowity koszt", htmlAttributes: new { @class = "control-label col-md-2" })
<input type="text" id="mealsOverallCost" readonly="readonly" value="@ViewBag.OverallCost" />
</div>
提出された入力から値を取得し、BeginFormにそれを渡す方法はあります。読書の私の方法で提示。
overallCost= $('#mealsOverallCost').value
適切ではありません。