Questions tagged as 'asp.net-mvc'

1
answer

Table relationships of the EF error model

Good morning, I'm new to ASP.NET MVC and I'm trying to make a simple application where I only have two tables, the first table is the author and the second is the table books. When I give you an author, it saves it in the database, but when I wa...
asked by 01.08.2018 / 01:48
1
answer

How to pass object to javascript function in onclick event?

from a list of objects, go through each, and for each row, pass the complete object to a javascript function, where you can access the data and eventually convert that object to json. In my attempts I only get [object]. The idea is to pass th...
asked by 12.09.2018 / 23:57
1
answer

C # Ticket printing

I would like to ask for help with a program that prints sales tickets, I have made all the printing of tickets but I need to add a header image and a text at the end as a footer, I hope you can help me leave the code to be reviewed and in case s...
asked by 30.07.2018 / 19:59
0
answers

HELP with Reference to object not established as an instance of an object. in ASP.NET MVC

The fact is that I am developing an online store in ASP.NET MVC, the fact is that when I want to add an item to the basket I get this error: Object reference not set as an instance of an object. And I get it in this part of the code:...
asked by 29.07.2018 / 03:03
1
answer

How can I add elements to a list of objects and display it in a view without replacing the previous one through a form?

Models / Person.cs public class PersonController : Controller { List<Person> personasList = new List<Person> () { }; public IActionResult Index () { return View (); } [HttpPost] public IActionResult I...
asked by 28.07.2018 / 11:05
1
answer

Send Label.textContent as parameter in an @ Url.Action

Hello people, I am a newbie in MVC and I have a question, is it possible to pass the text of a Label as a parameter? My idea, is that from that btn, send the controller the text of the label and then use it in the controller. The point is,...
asked by 02.08.2018 / 04:44
0
answers

Error when I try to update 300 data with mvc 5 + linq

Error when I try to update 300 data with mvc 5 + linq, how could I do it so that it does not happen     
asked by 24.07.2018 / 22:11
0
answers

Error in MongoDB service

At the time of processing queries, browsing my platform or inserting information from my web platform, the mongodb service starts to increase as the percentage of CPU and memory usage increases. But when it reaches 25% or more, as I show, It...
asked by 24.07.2018 / 22:03
1
answer

How to print on a thermal printer from ASP.NET MVC?

I have a "Totem" application which can be consulted, where for each query that is made, you must print a voucher or ticket with a service number. Is there any way to print and format the voucher with a framework or something related to ASP.NE...
asked by 27.07.2018 / 22:01
1
answer

.Net core 2.0 in Visual Studio 2017 version 15.0

I started watching some videos to develop web applications with .net, I'm using Visual Studio 2017 version 15.0, in the videos they use the core 2.0 to access an MVC template. With this version of Visual Studio I only have access to core 1.0 and...
asked by 07.08.2018 / 18:32