Questions tagged as 'mvc'

1
answer

Help with MVC (pass html data to a controller) [closed]

Good evening everyone I need help with something I have in a view something like this <h5>Cuanto es 16/8</h5> <div class="radio-btns"> <div class="swit"> <div...
asked by 17.09.2018 / 02:13
1
answer

DATATABLE DOES NOT SHOW BUTTONS

I AM USING DATATABLE FOR MY DESIGN BUT I HAVE A PROBLEM WITH THE EXPORT BUTTONS, THEY ARE NOT VISUALIZED, MY JS IS $(document).ready(function () { $('#listaDocumentos').DataTable(); }); var table = $('#listaDocumentos').DataTable({...
asked by 23.10.2018 / 18:15
1
answer

Problem with include_onde () when calling my db

I have this line of code include_once('./config/dbh.inc.php) to include the database to a data upload file but I get this error: Warning: include_once(./config/dbh.inc.php): failed to open stream: No such file or directory in C:\xampp\h...
asked by 20.06.2018 / 17:22
3
answers

Add columns of a mvc table

I have a table created in this way <table class="table table-bordered table-striped"> <tr> <th> @Html.DisplayNameFor(model => model.Sale.Date)...
asked by 18.07.2018 / 23:10
1
answer

Extract data from a db mediate angularjs and ajax

I am trying to extract the data from a table in my db using ajax and angular. Do a CRUD with MVC using asp.net and entity framework, the CRUD does not have any problem, but when displaying a data saved with angular no does not return anything I...
asked by 21.04.2018 / 22:10
2
answers

problems with ModelState.IsValid does not respect the required

I am doing validations to the text fields of a form through a model that I decorate with [Required] to require certain fields but cn the controller when I do the condition if (ModelState.IsValid) does not do the saving in the BD since the model...
asked by 13.04.2018 / 00:33
1
answer

Repeat Data in an Arrangement

I am using PHP and I have an arrangement that shows me the following: 0:{clave: "GTO", id: "45", nombre: "Guanajuato"} 1:{clave: "MEX", id: "76", nombre: "México"} 2:{clave: "EUA", id: "54", nombre: "Estados Unidos"} What I want to d...
asked by 16.08.2017 / 17:17
1
answer

Pass List from View to a Controller

I have a view where data is displayed in which data can be entered (Notes) @model IList<Proyecto01.Models.Nota> @{ ViewBag.Title = "Notas"; } <h2 class="text-center"> Notas</h2> @using (Html.BeginForm("ActualizarNotas",...
asked by 15.04.2017 / 08:16
1
answer

The resource is not found in c #

I have the following program that shows JSON data. Code of Controller : using MVCCuartoDia2.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace MVCCuartoDia2.Co...
asked by 04.05.2017 / 05:02
1
answer

How do I show data in RAZOR MVC ASP.NET from SQL?

I have a SQL statement: var motivo = conexion.Query("SELECT * FROM historialvisitas WHERE idvisita ='"+rgtro+"' "); This table has several columns, how do I show via RAZOR @ the value of a specific column? Example: I want to sh...
asked by 14.03.2017 / 21:25