Questions tagged as 'mvc'

0
answers

MVC 5, DropDownList cascading

I have the following problem: suddenly, my solution is the one you are looking for in the part of the controller that is needed for your model. I have the following problem, what happens is that if I give the apartment and then the city,...
asked by 08.09.2016 / 20:05
3
answers

ASP .Net Core 2.0 - Reading appsettings.json from a non-parameterized class

I'm starting with an asp.net core 2.0 mvc web and I can not read directly from a class the value of the appsettings.json (ConnectionString) that I need. I've found a lot of documentation, although none of them gets what I want. Summing up all...
asked by 27.03.2018 / 22:28
1
answer

Differences HttpRequest and httpRequestBase

From the controller the controller class gets the property Request and from System.Web.HttpContext.Current.Request but I do not understand the utility: public class HomeController : Controller { public ActionResult Index(Http...
asked by 04.11.2016 / 20:34
2
answers

Modify DropDownList MVC using Users?

I have these models in my users, febriles, districts and services, users and febriles data is required for districts and services, I have a dropdownlist with the following jquery and json script: @Scripts.Render("~/bundles/jqueryval") <scri...
asked by 22.11.2018 / 02:00
2
answers

Where should I validate the data entered by a user when I work in 3 layers?

Cordial greeting. I am working in a program with the 3 layers model (Vista, model and Controller) but I have doubts about which layer I should validate the information entered by a user with this I mean verify that a field is not empty, that it...
asked by 31.03.2018 / 03:23
2
answers

MVC problems pointing addresses

Friends I have the following form that points to a method in my controller CreateFolder I have no problem running my method, however, it is not giving me the view I want ... that is, I I always wait for you to send CreateFolder / index and t...
asked by 17.05.2018 / 21:45
2
answers

Sorting of lists C #

I have a question about the handling of lists ordered in C # I basically have a list like the following 1/02/2018 Capital $800 1/02/2018 Interes $1000 1/02/2018 IVA $160 1/03/2018 Capital $800 1/03/2018...
asked by 09.03.2018 / 23:40
1
answer

Ajax url changes on the server - MVC

Is it wrong to declare urls in ajax in this way? $.ajax ({ url: '/SFI_IncentivoDet/buscarIncentivosSinDetalles', type: 'post' }); I am working with the functions in separate files, in some cases I hav...
asked by 04.08.2017 / 07:27
1
answer

Problem with Java and MYSQL login

Today I come with you because I had a problem with a login I'm doing in Java with a connection to BD MYSQL. My class connection: public class Conexion { Connection conectar = null; public Connection conexion(){ try {...
asked by 19.10.2018 / 06:31
1
answer

Using Where in c # asp.net mvc 5

what can I do to save what that where generates every time I enter and then show it in the view, as well as saving the FirstOrDefault that every time I enter it I keep it in that add if (DedudccionesId != null) { IL...
asked by 17.10.2018 / 18:00