Questions tagged as 'asp.net-mvc'

1
answer

Best practice targeting action result

I need to direct the administrator to one location, the first-time student to another, and the student you have / p> My validations are working, everything is working. However, I wonder if there is a best practice to apply for it: [Htt...
asked by 14.05.2014 / 20:08
2
answers

IF condition within _Layout.cshtml in MVC

I have two _Shared.cshtml (MVC masterpage type, I do not know the name) and both are pretty much the same, only the left menu is different. I would like to do only 1 and according to the querystring I will call the page I want to be th...
asked by 13.05.2014 / 19:11
2
answers

CheckBoxListFor with error

   Description: An error occurred while compiling a resource needed to service this request. Examine the specific details of the error and modify the source code accordingly.       Compiler Error Message: CS1061: 'System.Web.Mvc.HtmlHelper' doe...
asked by 07.05.2014 / 19:05
1
answer

Sending new value to all users via signIR

I need to make all users receive the updated values on their screens as soon as the AutonavHub.client.printPackageInfoFloat(objeto) function is called within $scope.adicionar = function (objeto) {...} . Below is my ChatHub.cs u...
asked by 23.05.2017 / 22:39
1
answer

Is it a bad practice to leave an entire Cache Model in IIS?

In an application I use several times a code like var cliente = db.Clientes.Find(id); So I created a controller that returns me: [OutputCache(Duration = (10 * 60 * 60), VaryByParam = "id")] public static Cliente ClienteInfo(int id)...
asked by 18.07.2016 / 14:57
1
answer

Feed list gives "Index out of range"

On my system, I need to return the number of questions the student missed on a given topic. To achieve this, I tried creating a class that has two attributes: Tema and QteErros and instantiated it in my controller. public ActionR...
asked by 14.10.2015 / 02:25
1
answer

How to pass parameters from one view to two different actions ASP NET MVC

I need to pass two date parameters (ini, end) to two different actions, one to list on the screen, and another to generate a report. The problem that the view created from the action that lists the information on the screen (Action reportImpress...
asked by 02.10.2015 / 00:41
2
answers

Error trying to pass an ordered collection to a View

I'm trying to pass% s to an ordered collection, but I'm always having the same error:    There is no ViewData item of type 'IEnumerable' that has the 'TitleCortesia' key The only way I can successfully run my code is by using the followin...
asked by 07.10.2015 / 03:36
1
answer

Application stopping when there are many users accessing

My application is crashing and I do not know exactly why. The only thing I notice is that when there are many users accessing, or making requests this happens. When it happens, I have to restart the application pool and lift the application a...
asked by 16.03.2016 / 15:04
1
answer

5th step using jquery.smartWizard.js

I have the following form menu using jquery.smartWizard.js Ineedtoenterthe5thstepandIcannot.HowdoIenter?Belowisthecodeformyscreen.<!--Tabs--><divid="wizard_verticle" class="form_wizard wizard_verticle"> <ul class="list-uns...
asked by 20.03.2017 / 21:22