3
I have 2 HTML elements, a TextBox
and a Hidden
, which have values, how to pass the values of these elements in the Action link parameter? Below the parameters docItemId
and vlrImobIcms
are making a mistake.
<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>
do not know much of these languages, but I know HTML and POO in my opinion I think the problem is because the values
"VlrImobilizado"
and"ItemSelecionado"
are empty and the creation of the object requires everyone to have valuesnão nulos
.– Paulo Roberto Rosa