I have 2 HTML elements, a TextBox
and a Hidden
, which have values, how do I pass the values of these elements to the Action link in the Action link? Below the parameters docItemId
and vlrImobIcms
are giving error.
<div class="form-group">
@Html.Label("Valor imobilizado do ICMS", new { @class = "col-xs-4 control-label" })
<div class="col-xs-3">
@Html.TextBox("VlrImobilizado", "", new { @class = "form-control" })
</div>
<div class="col-xs-3">
@Html.ActionLink("Gerar Parcelas", "Gerar", new { bemId = @ViewBag.BemID, docItemId = ItemSelecionado.value, vlrImobIcms = VlrImobilizado.value }, new { @class = "btn btn-default btn-sm" })
@Html.Hidden("ItemSelecionado", "")
</div>
</div>