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

1
answer

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience

When I add @Scripts.Render("~/bundles/jqueryval") to the bottom in partialview I get warning in the log:    Synchronous XMLHttpRequest on the main thread is deprecated because of   its detrimental effects to the end user's experience....
asked by 10.01.2017 / 19:14
0
answers

Error in use of Asynchronous Action (Async)

This action should send an email Asynchronously, everything very simple until then, even use the same class in other projects with the same version of MVC. But to my surprise, this project does not work. You simply see the error below. Error:...
asked by 19.01.2017 / 02:58
0
answers

Error IIS 7.5 loading CSS and JS files, Error 403.14 in directory.

I made a publication of an asp.net mvc 5 project on a server running Windows Server 2008 r2 and IIS 7.5, while trying to run the application it does not load the css and js files. Whereinmyprojectthefilesaretherewiththecorrectnames. Note:...
asked by 18.11.2016 / 15:22
0
answers

Handling a string in the view - asp.net MVC

I have a public string TimeUpdate { get; set; } in my model that is of the form "13-12-2016 17:12:09" . I need that in the view it only appears the hours and the minutes, how I can do the treatment of the field? PS: I've tried...
asked by 13.12.2016 / 20:21
2
answers

How to populate a DropDownList from another DropDownList

I need to know how to populate a DropDownList from another DropDownList. Example: I have a DropDownList named Project that takes the information from my DB. When I select for example "Project 1" I need in my second DropDownList to load all Sub P...
asked by 23.07.2015 / 13:54
1
answer

Listing the return of a ViewBag to the View?

Following the instructions in this post ( Return the data to the View using Json.net or javascript- asp.net mvc ) replied by Loudenvier looks like this: Class: public class TB_RECEBE_IMAGENS { public int Id { get; set; } public s...
asked by 25.10.2016 / 03:39
0
answers

Error with AutoMapper

I'm having trouble mapping child classes in automapper, which I do from viewModel to model. Has anyone ever had this kind of problem? thank you very much I'll post the classes public class ViewModelToDomainMappingProfile : Profile { public...
asked by 09.11.2016 / 01:37
0
answers

Connect to page MVC5

Good afternoon, there is a page in the project that would be error404 when it does not find something it appears the page, only when I go to run it does not find, and when I click the right button and look for the controller it says it does not...
asked by 11.08.2016 / 21:24
0
answers

Uncaught ReferenceError: function not defined, load via ajax in partial view with ASP.NET MVC

Let's go to the scenario: A view, which contains a form, is loaded via Ajax (load) into a modal (bootstrap) and then this modal is presented. The form is built by the helper @ Ajax.BeginForm where the reference to an "OnSuccessAddEntity" funct...
asked by 08.08.2016 / 18:13
1
answer

MVC5 (Asp.Net4.5.2) - RedirectToAction does not work in a single case

In my Controller Account, in Login Action, I have the following code: case "Sucess": string rule = CheckRule(model.username, model.Password); Response.SetCookie(SetAuthCookie(model.userna...
asked by 31.08.2016 / 23:58