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

0
answers

Reload all css within a div

Expensive, I'll try to explain my problem, I hope to be clear. I'm using C # MVC5 in my app. Today I have a page and a grid. In this grid there is a button to edit the registry. By clicking this button, I open a modal and display a form...
asked by 02.10.2015 / 18:50
1
answer

Modal in controller

I'm working on a page that has a Model OrderPosition and there is a button that when pressed opens a modal of products, with a table with all products. As I click on a line of a product the product selected in the modal is added to the OrderP...
asked by 01.10.2015 / 21:46
0
answers

MVC: Passing a Javascript value to a Session

How do I make a sort of "mix" between javascript and razor? I have a page that logs in through facebook, I can login and would like to assign the return of the javascript function that brings the user name, my page session. More or less like...
asked by 23.08.2015 / 05:55
0
answers

Using Claims Replacing Sessions

I am refactoring an application that I am developing, applying good ASP.NET MVC practices to it, there is a difficulty in understanding the Claims and how to apply it to replace Session usage. When I log in to the application I save some informa...
asked by 16.09.2015 / 20:14
1
answer

Button only work if passed the Id in the URL in ASP.NET MVC

I have a problem in my application manager of Courses in ASP.NET MVC. The scenario is as follows: I have a screen where the "Student" enrolls in a course. By clicking the "enroll" button, it is associated with a course and the number of vacan...
asked by 04.06.2015 / 22:52
0
answers

Get dynamically generated element id (BeginCollectionItem)

I have a View , where I get the selected value in a DropDownList , use that value in a ajax query, and populate another DropDownList with the query return. Until then, that's fine. However, these DropDownList's will be...
asked by 14.07.2015 / 16:08
1
answer

Error using AutoMapper "Class Not Found"

I'm studying the use of AutoMapper , however I get an error in my project.    AutoMapper Version: v3.3.1 I added Config to my Global.asax, ficando assim: protected void Application_Start() { Auto...
asked by 22.04.2015 / 21:22
0
answers

Foreign key Entity framework 6

Someone can help me make a connection between these two tables, I want to use the registration field to make this connection, and enrolling in the student table is not the primary key. public class Aluno { [Key] public int IdAluno...
asked by 05.09.2015 / 17:49
1
answer

Login password encryption [duplicate]

I need to create a way to encrypt my login password on my system, as I have not yet implemented this security and I have no idea how to do this. So how could I create this encryption and compare it to the login time and see if it's right? T...
asked by 11.02.2015 / 01:40
1
answer

Doubt on Entity Modeling

I have an entity called Requests that satisfies the following business: A request is made by an Employee (Entity), then it is changed by another Employee and then confirmed by a third Employee. In a request I am sending a Client (Entity)...
asked by 16.02.2015 / 00:15