2
How could you put thousands apart into one textBoxFor()
?
Example:
Value entered in View
1,321 ( The point is for visual ease only)
controller would receive the 1321 value to insert into the base.
My field and Int
and use the ValidationMessageFor()
. When I point it returns the error because it has a point.
Codes:
View
@Html.TextBoxFor(model => model.contatoEfeitvo)
@Html.ValidationMessageFor(model => model.contatoEfeitvo)
Controller
if (ModelState.IsValid)
{
indicadoresmassivosp.status = (TempData["status"] ?? "2").ToString();
indicadoresmassivosp.dataAtualizacao = DateTime.Now;
indicadoresmassivosp.idUsuario = usuario.UsuarioId;
db.Entry(indicadoresmassivosp).State = EntityState.Modified;
db.SaveChanges();
return RedirectToAction("Index");
}
Enter the code so we can see how it is. Especially what control you’re using. This point is thousand separation?
– Maniero
Put the code there.
– PauloHDSousa
bigown, the point I just want to show visually because users are saying it’s bad to visualize without the point , I added the codes was what you needed ?
– Edgar Araujo