Questions tagged as 'razor'

2
answers

How to put a dropdownlist in a cshtml

I need to put a dropdownlist under the following conditions: It will display the City name (City Table), but it will only record the Employee Code. Using this approach, I can mount the DropDownList: Model public class Cidade { [Key...
asked by 10.08.2018 / 01:00
1
answer

Put mask in @ Html.EditorFor [closed]

In the database, the CPF field is bigint and long in the model. I have two problems with this: 1) If the cpf starts with 0 or 00, it will not record this and then, to display on the screen, I will have to use algon as padleft (11) or similiar. 2...
asked by 10.08.2018 / 19:50
1
answer

Error in Edit MVC .NET [closed]

I'm having an error when I edit my profile, my Physical Model is as PartialView , the following error occurs: Attaching an entity of type 'Projeto.Models.Fisica' failed because another entity of the same type already has the same primary...
asked by 15.01.2016 / 16:31