Questions tagged as 'mvc'

0
answers

Pass ID in MVC

Work with MVC without a framework. I have my route sheet: <?php require_once ($_SERVER['DOCUMENT_ROOT'].'/gestionweb/views/template.php'); require_once ($_SERVER['DOCUMENT_ROOT'].'/gestionweb/routes.php'); require_once('routes.php'...
asked by 18.09.2018 / 21:31
0
answers

Bring data from sql to mvc (more specifically in view)

Good morning everyone passes the following I have to show a view with the data of a database of sql filtered by a variable that I am bringing from session and I am dealing with the following @model IEnumerable<Examen.Models.Calificaci...
asked by 18.09.2018 / 16:57
1
answer

Count method of file type BYTE

It turns out that I have a problem. I can not do the Count method in a Linq query. It's about counting a data defined as BYTE in the database and I can not show it in the view, it returns 0 , null or all values, but...
asked by 09.10.2018 / 16:16
1
answer

Show result of 2 stored procedures in a view

Hello everyone I am new in the development world with asp.net, I want to show the result of 2 procedures in one view. public List<prodUnidad> Detalle_Producto(string codigo) { List<prodUnidad> detalleProducto = new List...
asked by 17.09.2018 / 03:17
0
answers

Command 'security setup' was found but is not currently available

Use gvnix 1.5.1 and roo 1.3.2 for a project. I am trying to create the corresponding security configuration files with the 'security setup' command but I miss this message that it is not available. I already have a class and a controller crea...
asked by 12.09.2018 / 21:30
0
answers

Decimal DataAnnotations does not validate more than 999,999

I have a decimal that when entering a value greater than 999999 this does not leave it as valid in the model state. [Required] [Range (0.9, errormesage ...)] public decimal variable {get; set;} I have tried removing the dataannotations by...
asked by 11.09.2018 / 22:28
1
answer

Problem with ASP.NET 2015 MVC when creating a driver error

Hello, at the moment of creating a controller or a view it shows me this error, why does this happen? How can I solve it?     
asked by 13.09.2018 / 16:57
1
answer

duplicate field in query records with Entity Framework on table without primary key

Currently I have the need to connect an application to a table in a database (Oracle 11g) of other software. This table does not have a defined primary key. My Entity is this. public partial class Inacc { [Key, Column("ACCHIS", Or...
asked by 10.09.2018 / 22:51
0
answers

A circular reference was detected while serializing an object of type 'System.Reflection.RuntimeModule'. MVC

When I save some data in the BD, this error comes back to me    A circular reference was detected while serializing an object of type   'System.Reflection.RuntimeModule'. It is through an Ajax petition $.ajax({ type: 'POST',...
asked by 02.09.2018 / 01:18
0
answers

Modify files generated by CRUD from Scaffold

Good evening I would like to know how do I have to modify the template .t4 of the controller? or what you have to change to be able to generate the files with Scaffold with the custom name. The file with the name Create.cshtml is created wit...
asked by 30.08.2018 / 20:55