Questions tagged as 'asp.net-mvc'

1
answer

Asp.net mvc 4 ado.net or lambda?

Dear, I am just starting on asp.net mvc 4 programming and the truth is that I feel somewhat lost. I come from working on Windows Forms and ASP.Net N layers, which used ADO.Net and it made it easier for me to create my Stored Procedures in S...
asked by 13.10.2017 / 23:45
0
answers

Error receiving DataSet Valors

DetailCountsCorrectDataSet (parameters) is a method in which you send parameters, this case Dates. I send two dates parameters and make the query when returning the valors I have an error, in (DetailCuentasPorCobrarDataSet) what are the...
asked by 28.09.2017 / 00:24
3
answers

Difference between HTML form and ASP.NET form

You can help me by telling me what is the difference between an HTML form and an ASP.NET form. They are not the same, why?     
asked by 25.09.2017 / 05:24
0
answers

Validate a List with Data Annotations

Good I have a list of objects, each object has a checkbox, if the checkbox is true I want to validate that the Name field and the Last name field have a value. My model: [ListHasElements(ErrorMessage : "Debe escribir en los casilleros")] pu...
asked by 25.09.2017 / 21:10
3
answers

2 models in a view razor asp.net mvc

Good morning I have the following problem create a model to put in another two models to show their data in a single view if I put public List<Producto> Productos {get; private set;} public DetalleEntrega Detalle {get; private set;}...
asked by 31.08.2017 / 16:31
0
answers

does not let me create in the entitty framework

I have a problem creating a new headquarters = building. Pressing the save button in the create view gives me the following error:    Entities in 'Entities.RRHH_SEDE' participate in the   'FK_RRHH_MUNICIPIO' relationship. 0 related 'RRHH_M...
asked by 05.09.2017 / 17:49
0
answers

Error: Incorrect syntax near 'OFFSET' RAZOR MVC WEBMATRIX

Good I have the following error and I do not know where it will be originated Incorrect syntax near 'OFFSET'. Invalid use of the NEXT option in the FETCH statement. eh tried everything but I can not solve the problem, here I leave the code...
asked by 16.11.2017 / 17:22
1
answer

two tables in an Asp.NET MVC view [closed]

Good morning classmates a newbie question in ASP.NET MVC to put data from two different tables, do I need to create a third class so that the data can be seen in a single view? If you could give me an example in code or tutorial I would be very...
asked by 10.08.2017 / 15:33
1
answer

Call data from related columns from the controller

Good morning classmates, I have related the table students and the teacher table in SQL SERVER 2014 I am now passing to ASP.NET MVC the database with Entity Framework . I have already generated the controllers and the views a...
asked by 08.08.2017 / 15:12
1
answer

Values by default MVC with entity framework and stored procedures

I have a stored procedure for saving records that has default values. Guardar(@ID int, @autor varchar (20)='anonimo',@isbn int,@titulo varchar(25)='TBD', @descripcion varchar(250)='N/A') public virtual int Guardar(ObjectParameter ID, strin...
asked by 13.07.2017 / 16:26