Questions tagged as 'asp.net-mvc-5'

1
answer

Remote validation preventing data editing

I am using remote validation to prevent repeated emails in the database, which works fine when I do some registration. The problem is that the remote does not accept the original registry value, and does not allow me to save the changes made to...
asked by 06.01.2015 / 01:52
2
answers

Calling a jquery function in tab change

I have a jquery function that mounts an html. It turns out that there is a View with 4 tabs. I would like when selecting a certain tab, the function would be called and of course, loading the dynamic html to mount the page. What event do I do? I...
asked by 13.06.2014 / 16:40
2
answers

how to work with PartialView

I have the People Registry, and I have the Address Book, which are in two separate classes, because the goal is that the user can have 2 or more addresses, such as delivery, and billing. So I wanted to know how to use PartialView. in the case I...
asked by 17.11.2016 / 12:07
2
answers

How to Include an Item in an ICollection

I have a Person class that has a ICollection of Phone class. On the Person Maintenance screen I have a dataTable with the Telephones. There is a link to add a new phone, but I can not use @Html.DropDownLIstFor to request the type o...
asked by 17.02.2016 / 22:07
1
answer

Choose which items from an enumerator appear in an EnumDropDownListFor

Is there a way to select only a few items from the enumerator to send to a EnumDropDownListFor ? For example: public enum Documento { CPF = 1, RG = 2, CNPJ= 3 NASCIMENTO = 4 } And I would like that in a given View...
asked by 29.10.2015 / 17:01
1
answer

Convert SQL script to Linq

I need to convert the SQL script below to Linq. SELECT [ID_Pessoa], [ID_ArquivoPagamento], SUM([Peculio_Valor]) AS 'Peculio_Valor' FROM [VW_PESSOA] WHERE [ID_Pessoa] = @ID_Pessoa AND [ID_ArquivoPagamento] = @ID_Arq...
asked by 08.12.2015 / 19:03
1
answer

create custom mascara

How do I create a custom skin for a given field? The mask will be in the following format:
asked by 10.12.2015 / 20:43
2
answers

How to make a button with Razor and Css

I'm trying to make a button on a particular page. However, my entire project started with the Razor engine, so I would like to know how I can make a button with such an engine, I'm trying to do it like this: @model WebApplication3.Models.Co...
asked by 23.10.2016 / 19:10
1
answer

How to position a Span tag on the page?

I'm studying ASP.NET MVC 5 and I'm trying to create a page where in the upper left corner I would have a "Menu" button, I could create the button and action but I'm having trouble locating the button on the page. / p> I want this button to be...
asked by 21.10.2016 / 22:11
1
answer

Required ErrorMessage dynamic content

Using Asp.Net MVC 5 I need to create a required message in the following format:    "Required field! [Registered name]" Normally it would look like this: [Required(ErrorMessage = "Campo de preenchimento obrigatório! [Razão Social]")] [D...
asked by 30.03.2015 / 22:28