Questions tagged as 'asp.net-mvc'

1
answer

Difference between @Html.LabelFor and @Html.DisplayNameFor

I'm starting in ASP.NET MVC and doing a course where the teacher used to display data from a class different methods for displaying a given. It uses @Html.LabelFor and @Html.DisplayNameFor . From what I have read in other forums%...
asked by 12.01.2018 / 17:25
4
answers

Doubt about using the SPA Template of VS2015

I need to do a routine to send email, through a form I made, using the VS2015 SPA Template. I put two buttons, Cancel and Send. The question is not in the email code, but how to assign the Click of the button to my code in the Controller and als...
asked by 11.05.2017 / 14:21
5
answers

Hover only in some columns

I have a table with 6 columns, but I just want to give hover in the first 4 columns. Is it possible to do this? I'm using MVC 4 and bootstrap I'm already using a method in Jquery : $(".table tbody tr").hover(fu...
asked by 03.04.2014 / 20:30
2
answers

I need to make a filter with linq on an entity, this filter should bring all the events for the next 90 days. Today's example: 11/01/2017 until 04/11/2017 (90 days) _con.SiteContexto.AsNoTracking() .Where(e => e.Data....).ToList();     
asked by 11.01.2017 / 19:00
3
answers

Consume Web Service with Login and Password

I have received these guidelines to access and consume the ListSourceProducts method of a WebService: Standard form of authentication of the Java application webservices for entities and associates It is necessary for the client to have a...
asked by 05.07.2017 / 13:32
0
answers

How to validate an AD user through a field using an MVC app?

I'm developing an MVC Sharepoint app that creates an AD user on Sharepoint, so I need a field similar to the SharePoint:PeopleEditor that exists in ASPX to validate those users at the time of registration. Is there an alternative? Or s...
asked by 17.11.2014 / 20:39
2
answers

Doubt with _viewStart in MVC4

I have 2 layouts ( LayoutPrincipal.cshtml and LayoutInterno.cshtml ) for the home page and another for the internal page. The inner page will repeat itself so I made the _ViewStart that points to the inner page and to test...
asked by 19.11.2014 / 19:21
1
answer

Error when ordering with PagSeguro API

When I try to create the payment, I get the following error. I'm using the following package: link    Additional information: For security reasons, the DTD is prohibited   in this XML document. To enable processing of the DTD, set the   Dtd...
asked by 05.11.2014 / 23:59
3
answers

How to make a combo With the days of the month?

What is the best way to do a comboBox with the days of the month? In other words, the combo has to take from 1 to 31 days. On the HTML side I have a label called "drpDia", and I need to load this label with numbers from 1 to 31. I know if...
asked by 16.02.2017 / 15:12
1
answer

There is no ViewData item of type 'IEnumerable' that has the key 'Categories' [duplicate]

I'm having a problem with dropdownlist . I populated it with information that was in my DB. controller code: public ActionResult NovoProduto() { ViewBag.categorias = new SelectList(db.Categoria, "CategoriaId", "Nome...
asked by 31.01.2017 / 07:53