Questions tagged as 'asp.net-mvc'

0
answers

Pass values from table to update

I have table , which is filled by the bank and can be changed via ajax , changed only in table and unchanged in the bank. What happens, is that as the data can be changed, I need to send the changed new data to save, I'm passi...
asked by 02.01.2019 / 20:26
1
answer

Send a modelView as a parameter to a modal bootstrap

When looking for how to render a partialView in a modal bootstrap , I found this link: Using Bootstrap Modal window as PartialView , but I need to make a POST request by clicking the button that opens the modal. That is, I need t...
asked by 20.05.2014 / 17:02
1
answer

JavaScript does not exist page on Aspx

I have an application in ASPX and C #. Within the "Scripts" directory of the application, I have a js with the following code: function RecuperaDados(valor){ loadXMLDoc("../Views/Home/Contact.aspx?ID="+valor); } However, it is retu...
asked by 18.07.2014 / 14:01
1
answer

Insertion 1 for many is recording two records in the bank

I have the following classes: Usuario , Noticia , Bloco and Editoria . I had a One to Many relationship between the tables Noticia and Editoria , Noticia and Bloco . It works perfectly, b...
asked by 19.07.2014 / 02:05
0
answers

ASP.net MVC application pool stopping alone

I have an application ASP.NET MVC that is running on IIS in version 10.0. When there are multiple concurrent connections (3 ~ 5 connections) it simply to the application pool displaying the following message in the log:    The '...
asked by 31.12.2018 / 14:05
1
answer

How to delete multiple selected records in a DataTable Bootstrap using JavaScript - Asp.net

In my Index I have a Table (DataTable Bootstrap) that allows me to select as many rows as I want. Datatable rows are loaded dynamically using JS. Each line stores the registry id: ("href=" / cep-manage / remove-cep / '+ full.id ") at the time th...
asked by 28.12.2018 / 20:56
2
answers

How to enable the "Add Controller" option in the menu?

Recently the option of my Adicionar controller has disappeared from the menu. I'm using Visual Studio 2013, and the project is ASP NET MVC, version 5.1. How to fix this problem?     
asked by 13.02.2014 / 18:18
1
answer

Controllers should have only one responsibility?

Just like an application's classes and objects, should my controllers have a single responsibility? Example. I have my controller Cliente , which has all the relationships with my model Cliente . I also have the model...
asked by 28.04.2014 / 14:49
0
answers

Step Validation ASP.NET MVC Question to continue the process

Good afternoon, I have the following method, where the intention is to return a Yes or No message to the user at View : public ObjetoResposta BeforePost(int step, string nomeUsuario, bool gravaLog) { if (!gravaLog && step...
asked by 13.12.2018 / 18:28
0
answers

MySqlException .NET Core 2.1: Unknown column 'xxxx' in 'field list'

I have a bizarre error that I would like to share with you. I'm using Visual Studio 2017 and creating an MVC application with NET Core 2.1, based on a MySQL database and tables that already existed previously. I created a model called Resu...
asked by 26.12.2018 / 22:17