Questions tagged as 'asp.net-mvc'

1
answer

ASP.NET MVC - Windows Authentication - Browser Authentication Form

I'm developing an ASP.NET MVC application whose access permissions will be managed from the parameters defined for users in Active Directory (AD) . In order to search for this data from AD I have developed methods that send the UserName of...
asked by 27.10.2017 / 17:45
1
answer

Error in asp.net mvc application

I have the error below and I do not know how to solve it. Does anyone have any idea what it can be and how to solve it?    Severity Code Description Project File Line Suppression State   Error Unable to copy file "C: \ WORK \ 1-Files   Per...
asked by 23.11.2017 / 13:08
1
answer

Standardize error messages in DataAnnotations in ViewModels classes

It is possible to standardize the error messages used in DataAnnotations, so that you do not have to pass a string like: [Required(ErrorMessage = "Este campo é obrigatório.")] But you can use more or less like this: string mensagem = "Est...
asked by 18.09.2017 / 13:44
1
answer

Error trying to change a user's role

I'm getting the following error when trying to change the role of a user:    Application Server Error '/'. UserId não encontrada. Descrição: Ocorreu uma exceção sem tratamento durante a execução da atual solicitação da Web. Examine o rastre...
asked by 10.10.2017 / 10:24
1
answer

Eaves view parameter to action

I have a view that list my users, it's basically in the default generated by asp.net mvc with entity, the data is in a table, and inside this table I have one: @Html.ActionLink("Aprovar cadastro", "Aprovar") And I have within the controller...
asked by 08.10.2017 / 03:59
1
answer

Pass an object to Modal

I have a Foreach in a table, I need as soon as the user clicks a line, open a modal with the data of the object contained in that row. Foreach: @foreach (PedidoModel pedido in @Model.Entidades) {...
asked by 08.09.2017 / 15:43
2
answers

Doubt with WebRequest method get passing token

I'm trying to read the data of an application, where I send the information via get, Error: Can not send content with this type of verb. public string ConsultaPedido(string urlpedido, string NumeroPedido) { var request...
asked by 06.12.2017 / 02:14
2
answers

Receiving images in ASP.Net Core and saving in the Entity Framework

Good afternoon, Can anyone tell me how to get an image in ASP.Net Core? I have the html page that you are trying to send to the server: <form method="post" enctype="multipart/form-data" asp-controller="Produto" asp-action="ImageLoad"&...
asked by 05.12.2017 / 17:27
1
answer

Entity Framework vs SQL Injection (security?)

Hello! I'm a newbie in development so I'm sorry if the question is silly. If it is thank you link's with references so I can better inform myself. As much as I understand the concept and the use of SQL injection I can not have enough malice t...
asked by 11.09.2017 / 15:52
1
answer

Inner join in tables 1 - n

I have two tables: Vehicle and Images, where a vehicle can have n images. When performing an inner join I get the following result: Vehicle1-Endereco picture Vehicle1-Endereco picture Vehicle2-Endereco picture Vehicle2-Endereco picture Vehicle2-...
asked by 10.09.2017 / 07:41