Questions tagged as 'mvc'

1
answer

How to sort a table for a second field in case the 1st field is repeated? in MVC of Asp.Net and VisualStudio2017

I am using Visual Studio 2017 with ASP.Net and MVC . Where I am sorting the fields of a table by a field Call number . public ActionResult Index(){ var hojaArchivo = db.HojaArchivo.Include(h => h.HojaInicial).Include(h => h.Mat...
asked by 04.07.2018 / 18:23
1
answer

How to serialize PHP data by connecting to SQL to show in a select in html (Does not show the value)

I would like you to help me with this code that I am solving for a university project. It turns out that I have 3 Tables that I want to show it in different select I am working with the MVC, where we have a general controller, for this contro...
asked by 01.07.2018 / 18:23
0
answers

How to show a value in a select of an edit view (scafolding) from a model

<div class="form-group"> @Html.LabelFor(model => model.Cantidad, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> <select class="form-control" id="Cantidad" name="Cantidad">...
asked by 26.06.2018 / 21:04
0
answers

$ _SERVER ['HTTP_REFERER'] does not show anything on my local server

I have this code and it shows nothing. I searched for information I did ANOTHER test with <?php if(isset($_SERVER['HTTP_REFERER'])) { echo $_SERVER['HTTP_REFERER']; } EITHER. I saw in a tutorial that a person if he left here, not...
asked by 23.06.2018 / 19:26
1
answer

How do I load a driver before loading a js file?

I'm doing a small guided tutorial for a web page, I'm using a library called introjs , which helps a lot for that task. But I have a small problem, the web page is created with MVC Razor, and the menu part is dynamic, and it is loaded from t...
asked by 17.07.2018 / 00:45
0
answers

Default value in MVC5

I need to create a sequence that is inserted by default, that is, I need that when inserting a record it is inserted by default, example fn000001,fn000002, ect. help     
asked by 02.07.2018 / 15:03
0
answers

Choose download location in phpExcel

I'm using this library link And everything works very well except for two things, ps when downloading the download in the project folder which when uploading to production fails ps does not lower anything, I guess for the permissions....
asked by 09.07.2018 / 18:11
0
answers

Ajax in Visual Studio 2013 undefined

use VS 2013, I have a table that should show the data of a form, but it shows undefined HomeController [HttpPost] public ActionResult AddUser(string UserName, string Email, string Password) { var user = new UserModel();...
asked by 23.06.2018 / 22:12
0
answers

save radiobutton php and mysql

I have a form to add rows to a table what I do not know how to do is how to receive the radioButton field when saving, since each one has different names in each row, for example 1st row --- SinPendulo0 2nd row ---- SinPendulo1 .......
asked by 20.06.2018 / 18:23
1
answer

Call getActionCommand with a KeyEvent

I have a GUI class and another Event Handler class that implements the Listeners. In the GUI I have 2 buttons that listen to the controller class. How do I make the keyPressed method of the management class identify which JButton is being pus...
asked by 16.06.2018 / 06:30