Questions tagged as 'asp.net-mvc'

2
answers

Lambda GroupBy by year and month

I have a list of events, and I would like to group them by year and month, for example [Year 2017] Month January  {Event 1, Event 2, Event 2} Month February  {Event 3} [Year 2018] Month January  {Event 4, Event 5} I'm us...
asked by 11.01.2017 / 20:43
1
answer

Project Standard

I use the following project pattern: WheretheInterfacewillonlycommunicatewiththeapplicationanditwillcommunicatewiththeRepository.Sotheinterfacewillhavenorestrictionsandnoknowledgeofhowcommunicationwiththedatabaseoccurs.InmycaseIusetheEntityFr...
asked by 25.08.2014 / 14:10
1
answer

Asp.net MVC adding application name in URL

I have a domain on a shared server and inside it I have some subfolders that are set up as applications in IIS 7. Within the main domain I have created subdomains that redirect to applications / folders. Ex: www.domain.com subdomai...
asked by 21.01.2014 / 18:38
2
answers

Save and send selected item id in dropdowlinst

I'm trying to do a search by filtering through a dropdowlist. In summary, I select a level of instruction in a list and clicking on 'Search' I want to return the list of people who have that level of education. My problem is in identifying the i...
asked by 09.12.2015 / 19:48
5
answers

How to solve accentuation problems with ASP.NET MVC?

I'm having problems with accentuation in ASP.NET MVC 5. I'm using Visual Studio 2013 Professional and the .Net 4.5 application. SQL Server 2008 and Entity Framework 6. The browser is Google Chrome upgraded and Windows is 8.1. Example: W...
asked by 03.03.2014 / 00:22
2
answers

Entity Framework Entity Framework update and delete

I have a student table that has many-to-many relationship with the course table. This results in the CursoAluno table. I would like to know the correct way for update and delete of the CursoAluno table. For exam...
asked by 06.05.2014 / 13:37
4
answers

Error message in datetime field

I have a field in my application in mvc asp.net c # to put start date and end date. [Required(ErrorMessage = "A data de início é obrigatória")] [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)] publ...
asked by 02.07.2014 / 18:19
3
answers

What's the difference between System.Web.Http and System.Web.Mvc?

I have a MVC project and I will have regular controls and controls providing services via webservices ( Controller and ApiController ). And I do not know which one to use because I do not know which one is best.     
asked by 25.06.2016 / 15:48
3
answers

When to use asynchronous or synchronous methods?

When should I use asynchronous or synchronous methods in controllers (Index, search, delete, create) ASP.NET MVC applications? Can I lose performance? In which situations should I use one or the other, could you give examples? If I have...
asked by 03.05.2017 / 03:33
3
answers

What is Difference Between HTML.ActionLink vs. Url.Action?

Reading some tutorials from ASP.NET MVC I found these two helpers being used to do basically the same thing, which was to direct the user to a new view . Then I would like to know if there is any more noticeable difference...
asked by 28.03.2017 / 17:24