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

2
answers

How to redirect to another page when user does not have authorization

I have my Custom AuthorizeAttribute . It works perfectly the way I want, but it always directs the user to /Account/Login , I would like it to redirect to another page that I chose, since he does not have authorization, how do I d...
asked by 10.09.2014 / 23:55
1
answer

javascript error - Uncaught TypeError - I can not solve

It gives me the following error: Uncaught TypeError: undefined is not a function. I still can not figure it out. I have already changed the jquery versions and nothing. I looked for quotes, semicolon errors and even then I still can not solve. T...
asked by 09.09.2014 / 15:46
1
answer

Update edmx file is not working

Whenever I do: UPDATE MODEL FROM DATABASE on top of my edmx file, it does everything right, including showing the table to be updated or the fields. He makes no mistake, he proceeds as if everything is fine. But when I conclude, it does not chan...
asked by 26.05.2014 / 03:13
1
answer

jQuery method is not writing to BD

I have a routine to write to DB. I get in AJAX's success, shoot a alert , but it does not record. A button that calls the method passes the parameters to the method in the controller and this method writes, with a SaveChanges() ....
asked by 20.06.2014 / 14:03
1
answer

Placing tabs inside a form

I have an html document with tabs. This is OK. Now, inside one of these tabs, I have a form, where I put my controls. I could not put inside this form more tabs, so that would have a document and inside it two tabs and within these tabs, but con...
asked by 24.06.2014 / 23:18
1
answer

Save tab information

I have my screen, as follows: Each tab corresponds to a class, and database entity, and going in the sequence there is a reference of them, that is to say in 02 has reference (fk) of 01, in 03 has reference (fk) 02 and so on. I've alwa...
asked by 27.06.2014 / 15:35
2
answers

Problems with cshtml presentation (Visual)

I have a cshtml, which is shown like this: A sequence of filters that are fixed. When I click on search, then I get the return of a method in the controller via json by a jquery function and in the success of ajax, I add the rest of the html on...
asked by 27.06.2014 / 14:41
1
answer

Visual Studio gets error in ASP.NET MVC 5 project

Hello, I'm trying to open an ASP.NET MVC 5 project and it gives the following error: Can anyone help me? I have already installed the updates and MVC 5. I installed the web pages through NuGet: Install-Package Microsoft.AspNet.Razor -Versi...
asked by 04.07.2014 / 19:41
3
answers

Jquery does not return the minimum value when using Math.min ()

I have the function: $(this.SubOfferGroups).each(function () { $(this.AnswerOffersList).each(function () { menorValor = Math.min(this.SalePrice.DefaultValue); }); }); When entering the array AnswerOffersList , I need to go...
asked by 31.03.2014 / 19:59
1
answer

Problem in javascript with method coming from controller per session

This is the error:    Uncaught TypeError: Can not read property '0' of undefined Well what happens is as follows: I search on a WS. In the return of this search, I mount an html and game in my view (cshtml). Well, that works. Then I...
asked by 04.04.2014 / 14:37