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

2
answers

How to redirect user to page after login?

I'm developing a web application, using Asp.Net MVC 5 com Identity and I'm using Roles to perform the authorization. I am trying to do that depending on the Role that the user has, it is directed to a different "Home" pag...
asked by 31.10.2016 / 11:05
1
answer

Error publishing application in IIS

I'm publishing an application in IIS, and when I access it, I get the following error:    HTTP Error 500.19 - Internal Server Error   The requested page can not be accessed because the configuration data related to > page are invalid....
asked by 21.01.2015 / 12:13
1
answer

What encryption does Asp.net Identity use?

When creating a user using Asp.net Identity, it generates a hash, even a column exists in the database with the name of PasswordHash My question is, what kind of hash is generated? What encryption does Asp.net Identity use?     
asked by 10.12.2014 / 23:05
1
answer

How to retrieve user name logged in and display in View

I am trying to develop a page, where the user is logged in, he is redirected to an index, where he would like to display the user name. I'm using Identity default of ASP.NET MVC . Then I thought about putting the following cod...
asked by 09.11.2016 / 14:10
1
answer

Performance while Rendering Pages ASP.NET MVC

How can I get more performance to render my pages using ASP.NET MVC?     
asked by 08.08.2014 / 22:08
1
answer

Other account information with facebook authentication

I am implementing facebook authentication and wanted to, when entering the application with the account data, also save full name, photo, among other data. Searching, I got the following code: facebookOptions.Events = new Microsoft.AspNet...
asked by 20.11.2017 / 23:56
1
answer

Many-to-many relationship with Asp.net MVC and Entity Framework

I'm creating a project to study Asp.net MVC 5 along with Entity Framework 6 , and I came across a big question in a many-to-many relationship . I used model generated from the database, and I created the controllers and views a...
asked by 13.09.2014 / 01:32
1
answer

Controller message for the view

I did this: [HttpPost] public void CadastraUsusario(string _nome, string _usuario, string _email, string _nivel_acesso, bool _ativo) { using (RupturaEntities db = new RupturaEntities()) {...
asked by 02.09.2014 / 20:28
1
answer

How to separate a fixed route from a variable route with asp.net mvc5

I have a control that manages videos. I'm trying to do these two methods: [Route("video/categoria/{categoria}")] public async Task<ActionResult> Index(string categoria) { } [Route("video/categoria/new-movies")] public as...
asked by 04.11.2015 / 21:34
1
answer

Send only list object that has changed to the controller

I have a view that lists all my clients . Each client has 3 checkbox where the user selects the same, and sends to controller - through the button (submit) - the data to change. The method is working perfectly. However, whe...
asked by 22.07.2015 / 16:52