Questions tagged as 'asp.net-mvc'

1
answer

Safe email sending, which allows the user to access an Action Edit on the controller

I need to email a secure link so the user can click on an Edit action on the controller. For example: Sending the link: localhost: 64148 / Movies / Edit? id = 4 But I can not send the link this way, because when the user accesses it, it...
asked by 18.09.2016 / 01:17
1
answer

Error when uploading site Asp.net MVC

I uploaded my files to my site hosting but I'm getting these errors, do I have to add some permission in Web.config?    [SecurityException: Request failed.]      System.Security.CodeAccessSecurityEngine.ThrowSecurityException (RuntimeAssembly...
asked by 16.09.2016 / 23:14
1
answer

Problem when displaying modal bootstrap

I'm trying to display a bootstrap modal for the client, with an error message, my code looks like this: @if (!string.IsNullOrWhiteSpace(Model.ErrorMessage)) { <script> $('#modalError').modal('show'); </script> }...
asked by 16.09.2016 / 01:00
1
answer

Controller Edit - Inserting Values

My method responsible for editing is inserting values into the CONSUL_EnciclopediasCONSUL_Promocoes table instead of editing. If I have the options x with id = 1 and y id = 2 within the course a with id = 1 and I originally choose the opt...
asked by 12.09.2014 / 19:49
1
answer

Doubt with if inside a Partial View asp.net mvc

In my view I have: @if (Model.Count() > 0) { foreach (var item in Model) { @Html.Partial("_FormularioPossibilidade", item) } } In Partial: @if (@Html.DisplayFo...
asked by 29.07.2016 / 23:29
1
answer

Exception error when authenticating login with null values - Simplemembership - ASPNET MVC

I've developed a project in asp.net mvc5 from a course I'm doing, which is accusing the following exception error at the time of authenticating the login menu when I do not enter any data in the form fields and step null parameters:    "An ex...
asked by 11.08.2016 / 17:00
0
answers

Upload - the process can not access the file because it is being used by another process

I'm trying to mount a file manager, but I'm having trouble updating the file. First I make the upload of the file, and after that, if the user wants to update, I have the option of updating, where it changes the file, that is, it uploads...
asked by 15.07.2016 / 14:20
1
answer

ASP.NET MVC Integration of accounts with office365 authentication [closed]

I have a project in Asp.net MVC 4 and the users have registered with the system itself, however it was necessary to authenticate them through office365, that is, when accessing the office365 the system recognizes the same access email and integr...
asked by 15.07.2016 / 14:20
0
answers

JScripts work in one view but in others not!

In my project I have a view "Index" where I use the following script:          <script>$('#search').focus();</script> It usually works on this view "Index", but if inside that view I have a table with some dat...
asked by 21.07.2016 / 19:20
1
answer

How to remove Essentials Web extension from visual studio 2015?

I added this extension in Visual Studio 2015 to test, but it disables all native Visual Studio commands, I wanted to remove this to never install again. link Getting this garbage out in Tools / Extension and Updates, plus Visual Studio d...
asked by 27.07.2016 / 01:03