I would like to dynamically load my dropdownlist without submitting the page!
my project is in .net mvc! architecture
@Html.Label("Categoria do Veiculo: ")
@Html.DropDownListFor(v => v.CodigoCategoriaVeiculo,Model.TipoModeloEquipamento...
I want to make a form where I can register multiple addresses and phones for a single person, and I want to be able to do this when I am registering the person.
Based on the answers to my other question , I came to the part where I put te...
Model
public class Transacao
{
[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
public int ID { get; set; }
[Required]
public DateTime Data { get; set; }
[Required]
public decimal Valor { get; set; }
}...
I'm having problems validating my fields of type decimal using Razor, when I try to enter 0 in the field it gives the following error message.
The field XXXX must be a number.
Below is my class and how I enter the field with Raz...
I have the following form:
@using (Ajax.BeginForm("minhaAction", "meuController", new AjaxOptions()
{
HttpMethod = "POST",
OnFailure = "alert('Erro!')",
OnSuccess = "TrabalharResultado"
}, new { id = "meuForm"...
I need a Partial View control to be displayed according to a condition. For some views a button would appear for others not and this would be set via a parameter in the Partial View call.
After searching I saw that I can use ViewDataD...
I have a very simple form with 3 textbox and a button. I would like to get the value of the first two textbox by clicking the button and move to a method present in my model and after that return that result to the third textbox . I'm havin...
I'm using Razor to generate a SelectList like this:
@Html.DropDownList("StatusImovel", new SelectList(ViewBag.ListaStatus, "IdStatus", "Descricao"), new { @hidden = "hidden", @multiple = "multiple", @form = "nulo" })
I need it...
I am trying to fill a DropDownList with a selected value within a for , but it is not working properly.
What happens is that when Action Index returns the model to View , values are not being selected, always being the...