Questions tagged as 'razor'

1
answer

MVC Helper Menu

I'm having a hard time putting together a Helper to mount the system menu This is my view @model IList<Devcompy.ClientWeb.Devcompy2.Helpers.HierarchyNode<Devcompy.Models.Entities.Segurancas.Menu>> <!-- Navigation --> <n...
asked by 20.12.2014 / 15:18
2
answers

Button Font Change

People wanted to know how I could make my button not go purple because of the hyperlink. Iwantedtomakethebuttonappearmoreorless. Code:<buttonclass="button"> @Html.ActionLink("Nova Visita", "Form") </button> CSS: .but...
asked by 02.08.2018 / 16:30
3
answers

Problem in running the Visual studio debugger

I have a problem with my project, I use ASP.NET MVC 5. From time to time I get this message every time I run my project, the problem is not the visual studio installed on the machine (
asked by 17.11.2017 / 14:49
1
answer

Inserting data into db sql server

I am having problems connecting my project to the database, I do not understand the reason, I have already looked at several tutorials, I use sql server 2017, I can access db in an application, but the site is not working. I'musingthefollowingc...
asked by 19.10.2017 / 00:50
1
answer

PartialView relationships asp.net mvc 5

I'm having trouble creating the logging logic of models that has relationships between them. One exists only the reference, but in the other, the reference is of the List < > type. I created a partialview containing only the field...
asked by 09.11.2017 / 15:27
1
answer

Display Name with Razor

Do I have this case in my project? public enum TipoValorCalculoComissao { [Display(Name = "Percentual")] Percentual = 1, [Display(Name = "Valor")] Valor = 2 } And I would like to put these values in a combo, but I applied th...
asked by 03.06.2017 / 14:47
1
answer

How to make two RadioButtons enable and disable fields

Each radio button enables and disables two fields, two by two. When the first radio is clicked the first two textBox are enabled and the last two are deactivated. When the second radio button is clicked the first two textBox are di...
asked by 23.05.2017 / 19:08
1
answer

The contents of the variable are not displayed in View

Instead of displaying the value of item.Endereco in the WebGrid what is displayed is a text @ item.Endereco.Length > 0? item.Endereco.Substring (0, item.Endereco.Length - 3): item.Endereco . Home In my current scenario I have to do...
asked by 13.06.2017 / 23:36
1
answer

JavaScript load PartialView passing a Model

I need to call a PartialView in my JavaScript but I'm not sure how. I'm using a plugin that in the variable TARGET receives a Div. And in my case, this Div I put in being a Partial View. My JS looks like this: var modal = new Custombox....
asked by 23.03.2017 / 15:59
1
answer

What is a good practice for using ModelBinders in MVC

I'm looking to create a page using best practices in ASP.NET MVC. I wondered what would be the best practice for me to model my page using modelbinders to "bind" my object automatically. In this case, my doubt was in the relationships between...
asked by 17.03.2017 / 16:25