Questions tagged as 'mvc'

2
answers

Problem with jquery in a select

I am using the model MVC with PHP v7. , HTML5 and SQL server 2008 , I have a page where I display a certain list and for each record I have a button to update.  Pressing the button calls a function in JS , which t...
asked by 04.09.2017 / 18:06
0
answers

Select item in DropDownList - MVC

I have problems to recover the information already loaded in a DropDownList I have a view with a foreach of the model @foreach (sfi_1.Models.SFI_IncentivoDet itemInc in incentivos) I have a DropDownList @Html.DropDownListFor(s=...
asked by 08.08.2017 / 17:23
0
answers

SaveChanges entity framework 6 error with two entities

I'm trying to save an entity Note from the controller -> servicio -> repository and it gives error of DbEntityValidationException and I paint it by screen but then I am saving the statistics of the web and when I tried to do...
asked by 14.07.2017 / 14:36
2
answers

Pass data from cs to cshtml MVC

I manage a project which must generate the body of a personalized email message (HTML) for this I have an auxiliary .cshtml file which is taken as the body of the message. To fill this body in the controller I have a class that obtains the selec...
asked by 03.07.2017 / 20:09
1
answer

Problems with ajax.beginform and client side validation

I want to do validations on the client side but I run into the following problem. If the model is not valid, I will return the view with the error messages in UpdateTargetId of the form, so that: The part of the code of the form...
asked by 17.06.2017 / 18:50
1
answer

How to assign listeners in java mvc desktop with several forms?

Good afternoon community I am developing a sales system in java with mvc and hibernate. and there is a problem, when accessing the main form after the login, I do not take the listeners into account and it does not allow me to open the follow...
asked by 17.06.2017 / 18:47
2
answers

Sending a json by Ajax and the controller receives all the data in null?

Sent some table of inputs with the following code: $('#guardar').click(function(){ var header = $('table thead tr th').map(function () { return $(this).text().trim(); }); var Datos =...
asked by 16.06.2017 / 20:42
0
answers

Send Several Invoice Details from the view to the controller

I need I have several invoice details in my view and I need to send those details to the controller to save them: View: (I have two Details like this :) <tr id="Registrodeproducto"> <td>...
asked by 15.06.2017 / 23:04
1
answer

Error with slice select2.js

I'm having trouble filling out a combobox with Select2 I have my JS: $("#comboplatos").select2({ placeholder: "Type to select a sponsor", minimumInputLength: 3, allowClear: true, style: "display: inline-block", width:...
asked by 19.06.2017 / 08:07
2
answers

Send date from the view to an input of type: date

I need that in this field I have the date I sent from the view of C # I have the following line of code in the view of c #, but it does not work for me: <td> <label for="FechaVencimiento">Fecha Vencimiento:</label&g...
asked by 20.06.2017 / 23:45