Questions tagged as 'mvc'

2
answers

Put the time to input text in view html with jquery (not Php)

How can I put today's date by default to an input text when executing my view in html with jquery javascript? The only thing I have achieved is this code, which works but does not print in the input but in the body of the view: <s...
asked by 01.04.2018 / 11:56
1
answer

MVC Create Controller - DbContext has been disposed

I'm using MVC / Entity Framework, the error that is coming up is this: The operation can not be completed because the DbContext has been available Yes the record is created, but I get that error every time I save the record. Before, (yest...
asked by 23.11.2017 / 14:47
1
answer

Create administrator in cakephp

Good morning, I have a problem, the administrator user thinks, but the page does not work for me, here are the codes: These codes are copied from the cake book 2.x If I do this, it goes well: App::uses('Controller', 'Controller'); cl...
asked by 27.04.2018 / 17:14
2
answers

How to validate a texbox that only lets me enter numbers up to 100

How can I validate a textbox so that it does not allow me to enter more than 100 in asp.net? Try doing that: <%= Html.TextBox("nota" + cont, item.nota, new { @class = "form-control", type = "number", min = "0", max = "100", id = "txtNot...
asked by 02.05.2018 / 15:35
1
answer

Decimals in mvc

How about. I am developing a web application in Mvc, and it is a medical calculator, where the user enters certain values, the account is made, and a value is returned. In the cases where the entry has to be with decimals, I get the following er...
asked by 22.12.2017 / 02:12
3
answers

Problems with DropDownList ASP MVC

Greetings, I have problems with a DropDownList in ASP.net MVC, the website filters the Teachers but at the time of saving gives the following error: This is the error that the System shows:    Exception Details: System.NullReferenceExcepti...
asked by 03.03.2017 / 15:41
2
answers

Send a grid entity by POST

I have a view created with Razor with the list template based on a model, the view is fine and it shows in a grid the data of the list, and also has its 3 links (edit datail delete), what I need is that one of those links (or add a fourth link o...
asked by 25.11.2016 / 01:35
1
answer

I need to Refresh a View When using onchage in a select. in MVC 4 razor C #

I have a problem with the use of a select class="selection-box large-select" name="drop" id="drop"onchange="rut()"> which I am using it to send its value to a [HttpPost] public ActionResult MiPerfil(string pRutIn) { pFecha...
asked by 16.09.2016 / 19:43
0
answers

Error in Laravel Routes 5

I am new to Laravel, I currently have a problem. I have a project that happened to me, which was done in version 5.2 of Laravel, I currently have 5.7. Execute the commands: php artisan cache:clear php artisan config:clear Verify that you al...
asked by 10.09.2018 / 03:34
0
answers

URL mapped does not allow ajax to find the resource

Help, I have a file structure in mvc for php, and everything that is written in the url goes through the public / index.php folder. which accesses the folder app / iniciador.php which loads the classes with the views, drivers and models. The...
asked by 05.12.2018 / 15:23