2
I am sending data using a get and receive in the controller using a Querystring, the problem is that the value goes in a format without the decimals, so when I have a value like 10.20, this sending only 1020 recording wrong value.
@model IEnumerable<Generico.Dominio.TB_JOGO_DETALHE_TEMP>
@{
ViewBag.Title = "Index";
}
@Html.Partial("_navbarInterno")
@Html.Partial("_PartialMensagens")
@using (Html.BeginForm("GravarDados", "Aposta", FormMethod.Get))
{
<div class="container droppedHover">
<div class="row">
<div class="input-prepend input-append">
<input class="form-control input-sm " onkeyup="somenteNumeros(this);" id="numero" name="numero" placeholder="número.." maxlength="4" type="text"/>
<input class="form-control input-sm" type="number" id="valor" name="valor" placeholder="valor.."/>
</div>
</div>
<br />
<button class="btn btn-primary btn-block " type="submit" >Adicionar</button>
</div>
}
Could you tell me how this can solve the problem? , I just want to send the data the way it is in the input
– Harry
I updated the answer.
– Leonel Sanches da Silva