Questions tagged as 'mvc'

1
answer

Link through class or method css file in php

I have been developing a project with php, but I am currently in a problem that is my php files of views have linked many css and js files, but as I am calling them from a router those relative paths are lost, I know that a solution It would be...
asked by 12.08.2018 / 04:39
2
answers

I can not get 1 object from my database, problem with SQLite and PreparedStatement

I'm doing a system with a full CRUD, the only problem I have is that I can not recover 1 object from my database, I can list all the objects but I do not get only 1, I'm using MVC and java web. Here is the servlet that runs the search @Over...
asked by 24.07.2018 / 17:10
1
answer

How to send 2 lists by JsonResult

What I want to do is send 2 lists in a JsonResult method and receive them in Ajax. Because I have a table from many to many, I need to change the IDs by names. So I need you to return the name of things. public JsonResult GetHerramientas(int I...
asked by 26.06.2018 / 20:36
1
answer

Javascript function that does not work

Good afternoon everyone what happens is the following I have a function in JavaScript which cancels letters in a textbox and does not work I have the following $(function () { $(".numbers").keydown(function (e) {...
asked by 17.09.2018 / 21:22
1
answer

C # Razor HTMLHelper Dropdown

Friends I'm doing a drop down list with Razor and I'm trying to get the drop values, but I only get the name that I put in place of their values someone could guide me or tell me where I am wrong? [HttpPost]...
asked by 17.05.2018 / 18:22
1
answer

Validate texbox from 1 to 100

I'm doing a validation in which I can register numbers from 1 to 100, the more an error message comes out and the texbox is cleaned, it works perfect, when the user leaves that texbox he jumps the second message saying that introduces the number...
asked by 16.05.2018 / 18:38
2
answers

Problem with Vista in CodeIgniter

Hello everyone I have a problem that does not reflect in a view the data of another associated table, if I show the ID with the reference of the column but I want to give me the names, here is the model: It is a CRUD: The view has to add, edit a...
asked by 08.05.2018 / 23:55
1
answer

Show new BD field in cakephp view

Well the problem is as follows, create a field in the database @KacosPro and connect a page to make an ibdate in this. The thing is that now I must connect it from another page that shows a table, the thing is that it does not do anythi...
asked by 24.04.2018 / 17:57
1
answer

MVC: a controller and view by form?

from my index.php I call different options using mvc. For example customers: list the clients with listclient.php. But there I have edit and new client. The question is: I have to create a clientcontroller.php and a viewaggregate.php and v...
asked by 01.05.2018 / 10:29
1
answer

Update the values in a list

I have this code, I need to update the values in case I can not find it. List<Rollos> set = new List<Rollos>(); Rollos temp = new Rollos(); foreach (Rollos y in l) { if (set.Any(x => x.item == y.item)) { temp...
asked by 14.05.2018 / 19:25