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

3
answers

ASP.Net MVC or WebAPI?

What is the advantage of using MVC and WebAPI (using Visual Studio and C #)? I think developing in MVC is easier than putting together a form with validations, so just put special attributes for this purpose and use the Wizard that already as...
asked by 02.02.2015 / 14:54
1
answer

Asp.Net Identity, how to use only Roles or Claims?

Returning to the same subject: ASP.NET Identity with EntityFramework . Regardless of the size or planning of my project, if I need to use only the Roles part or just the Claims , is this possible? And most of all, how? Finally, i...
asked by 15.09.2014 / 03:16
2
answers

Routing and Url friendly with asp.net mvc

How do I make routing and url friendly (dynamically) in my web application using asp.net mvc 5 ? Currently I have the url: http://myapp.com/Produto/Details/7 And I want to apply the routing in it so it looks like this: http://myapp.c...
asked by 23.08.2015 / 16:24
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
3
answers

Validate credit card number

How do I validate credit card numbers? I will not be integrating with card operator, I just need to validate the number, as it does with validation with CPF.     
asked by 09.11.2015 / 20:26
1
answer

IIS mount server on PC at home

Hello, I need to know if I have IIS configuration on a notebook, so that when this notebook is connected in the company, it works as my server, so I can access my ASP.NET MVC application through other devices ... I want to access the site as...
asked by 23.11.2016 / 20:29
2
answers

Is it wrong to leave business rules in controllers?

I see in several code examples this, and even in the "default" project that is created in visual studio, they leave a good part of the rule in the controller Is it wrong? When to use this? What is the advantage and disadvantage?     
asked by 16.09.2014 / 22:40
2
answers

What has changed from MVC4 to MVC5?

I have read some topics on the subject, some say it has changed very little, others say that it was very important changes. I would like to know your opinion on the subject, I currently do projects with WebForms so I do not have any knowledge ab...
asked by 02.12.2015 / 14:13
2
answers

Redirect from Http to Https in Owin + OAuth + ExternalLogin

In the Host where my application is hosted, it uses ARR to redirect all pages to Https . The problem is that in the way that the code for asp.net mvc is configured, it means that the request is http , even though it is h...
asked by 22.10.2015 / 19:56
3
answers

Breadcrumb Algorithm in ASP.NET MVC

I'm writing a system on asp. net-mvc and the idea is that on the screens there is a Breadcrumb on all screens. Without ideas for a good algorithm, I booted a Helper that returns a list of objects according to the route accessed. The file is re...
asked by 28.02.2014 / 18:42