Most voted "mvc" questions
Model-view-controller (MVC) is a model of software architecture that separates information representation from user interaction with it.
Learn more…743 questions
Sort by count of
-
0
votes1
answer43
viewsHow to get the result value of divValue. result[2] in the mvc controller?
$(document).ready(function(){ $("#btnSend").click(function(){ $.ajax({ url:'@Url.Action("VerificaCep","ConsultaCep")', type: "GET", contentType:"application/json", …
-
0
votes2
answers64
viewsIs there anything in MVC that is equivalent to the <Asp:Repeater> of Web Forms?
I am mounting a form where some fields may or may not repeat, example: Course 1: Course [input text] Institution [input text] Year of completion [input text] Course 2: Course [input text]…
-
0
votes1
answer43
viewsList the Result of a Query
I want to return in my code a list of users through a query data, I have the following model: <?php class Usuario{ public function listar($condicoes = array()){ $db = DB::criar('padrao'); $sql =…
-
0
votes1
answer1012
viewsEntityframework: There is no mapping of the Objectparameter object type to a native type managed provider
I am developing an MVC application with Entity Framework in Code First. As my database has procedures, I opted to use Sqlquery to execute the procedures, but I am thinking about this error: Não…
-
0
votes3
answers814
viewsI cannot display Spring error message
I’m trying to validate some annotated fields, but I can’t bring the messages to the jsp page: Java user. mport java.util.Calendar; import javax.validation.constraints.Email; import…
-
0
votes0
answers285
viewsCall Controller Search Action
I have an action in my controller that calls a service that does a search using stored procedure and returns a list to me. I made the form in the View to call this Action, only it’s not calling…
-
0
votes0
answers641
viewsClass not found in namespace
I’m trying to use a class by using the namespace, but it always generates this error: Fatal error: Uncaught Error: Class 'Database\connect' not found in…
-
0
votes1
answer76
viewsUnable to Retrieve Metadata for - Error creating Controller
I created a web project with MVC and Entity framework 4.5, and MYSQL database. added the dlls Mysql.Data Mysql.Data.Entity and Mysql.web I made all settings as per images below I followed the step…
-
0
votes1
answer143
viewsForm data is not sent with Event.preventDefault()
When submitting a form, I am using ajax and event.preventDefault() so that the screen is not recharged. In my project, I made a small MVC structure, where the URL that I pass is the path that leads…
-
0
votes1
answer1557
viewsSend parameters to Restfull services
I have a web application mvc and in it I have an action that should pass a parameter to a REST service. How do I pass a parameter to a REST service. I know that I will have to implement an Httppost,…
-
0
votes1
answer38
viewsHow to create a create function using data from tables with n-to-n ratio?
It turns out that the create function that the other intern did doesn’t work because it has two tables with relation of n-n and in the function it just goes to fetch data and records them in one. I…
-
0
votes1
answer319
viewsHow to make a query bringing me the last value of a specific id
I’m trying to do a c# query with Mysql, where there are two tables: Compra --> Table where you take the IdProduto and the Product Value. Abastecimento --> Table where the IdProduto and the…
-
0
votes1
answer319
viewsUTF-8 Does not work on all pages
I’m having trouble using the charset='UTF-8'. I am developing a website for a college project using MVC and as a standard I declared the utf-8 in a view to be used as a standard for other views, but…
-
0
votes1
answer86
viewspost call does not work, returns error 405
have the following javascript <script type="text/javascript"> function calculaReducao(){ var nd1 = document.getElementById("nrDentes1").value; var nd2 =…
-
0
votes1
answer74
viewsUndefined javascript function after $.getScript('');
I need to load a file . js after an ajax call. I have been searching and found the $.getScript('') to call my file, it opens, everything is fine, but the functions defined in that file are not being…
-
0
votes1
answer372
viewsCreate select for a PHP table
I’m having trouble creating the select to later use in a table. The mandatory SQL tables are the following: “Aluno” (**PK:** id, numero, nome), “Area” (**PK:** id, nome), “UC” (**PK:** id, nome,…
-
0
votes1
answer61
viewsIt is bringing the whole column and not only a specific id
I’m trying to catch the last mile registered on the seat of a specific vehicle, but it brings me all the miles and not a specific vehicle. My Controller: var Rota =…
-
0
votes0
answers175
viewsReturn Image (Blob from Database)
I am unable to return the images of a controller. Below I explain all the encoding: I created a controller, and a view for this controller that returns the image that is in an Oracle blob field. It…
-
0
votes0
answers51
viewsApply . css styles before displaying page
I don’t have much experience in web programming. On the website I’m creating was having a problem with the graphical formatting of . css not be soon applied and create weird effects when showing the…
-
0
votes1
answer80
viewsClasses do not load! Script runs on xampp but does not run on LAMP/LEMP/VPS
Guys, I made a very light and simple script. In xampp it runs normal, but when I go up to any server does not go at all. I’ve tried the Lamp, Lemp (From Digital Ocean), at VPS (Dreamhost), but it…
-
0
votes0
answers35
viewsPython - CTR class does not register in DB
Good night. Application developed in Python 3.x Database: sqlalchemy. I’m trying to develop a simple product registration system in an SQL database. For this, I am trying to develop from the MVC…
-
0
votes1
answer611
viewsDoubt in listing data from the JAVA database - JSF
Good afternoon, I have a doubt in listing data in a datatable, coming from the BD. I do not know how to return to the BD data view. Follow my code until the moment package…
-
0
votes1
answer48
viewsError while listing data in Datatable
Good morning, I’m trying to make a simple listing of a table on a primefaces datatable, but they’re not listing anything. Follow code until the moment. .xhtml: <!DOCTYPE html PUBLIC "-//W3C//DTD…
-
0
votes1
answer78
viewsView data is disappearing at a certain time
Here’s the thing, from what I understand the whole project follows the MVC Standard. I just have a big problem. A view of requests there is a refresh 30 seconds simple, looking for new orders. So…
-
0
votes1
answer49
viewssessionFactory null when trying to select in the database
Good morning,I’m using Spring and JSF. I wanted to query the database and return the data from a table, but in the method I do the search, when calling sessionFactory, it is null. I really couldn’t…
-
0
votes0
answers480
viewsSend complex view object to ASP MVC controller
In my View I have a complex model where I display in a table only a few fields. In this model I have another list called Tracks where I do not display its contents. Note the image below. I need to…
-
0
votes0
answers130
viewsWhy do my routes only work on the localhost and not on the Web server?
I am a developer .NET (Desktop apps & mobiles) trying to get on the web PHP for being a free Lang and her FDI’s are light. I created my MVC (as a beginner I preferred not to use frameworks) and…
-
0
votes2
answers103
viewsDoubt in Selectonemenu Primefaces
I have a Selectonemenu in my xhtml view. I have an onchange in it that when clicking calls a p:dialog to fill out a form. Follow selectOneMenu <p:column headerText="Mecânica"> <div…
-
0
votes0
answers207
viewsDoubt JSF Dialog + Selectonemenu
Hello, I’m trying to open a dialog with a selectonemenu, depending on what the user selects. My Selectonemenu looks like this <p:column headerText="Mecânica"> <h:commandButton>…
-
0
votes1
answer247
viewsRemove MVC URL parameter name
I have the following URL /vlog/usertimeline/? Slug=tests for the Vlog controller, usertimeline action and Slug parameter. How should I set the route to stay /vlog/usertimeline/tests I’m using MVC 4.…
-
0
votes0
answers147
viewsProblems returning a Iqueryable<> list to convert it with Automapper
I have a function that returns me a list of people with their personal/legal relationships. I own a Personal Viewmodel that is already mapped in the Autommapper layer... When I call the Getjoinall()…
-
0
votes1
answer1028
viewsPopular Canvas Chart with Database List
I need to make a Dashboard and I’m having a hard time to popular a line chart of a canvas chart. I need date and label arrays to be filled with data from my list but don’t know how to do it What I…
-
0
votes1
answer168
viewsHigh box input in Asp.net
I am creating an application in MVC with DDD and on my registration screens, I would like the fields string as NomeCompleto, Endereço, Cidade, etc, were saved on displayed in inputs in high box. I…
-
0
votes1
answer633
viewsJPA insert an object that has a list as attribute
I am developing a layered system(packages),to exercise the concepts of class and came across a question I would like to create a product class,the same has attributes that are references of other…
-
0
votes1
answer219
viewsRepeated post in sending the data to the controller, how do I fix?
I’m trying to develop a php mvc system but I came across this problem in Create. The post is sending multiple data repeated do not know why this is happening. My view create looks like this <form…
-
0
votes1
answer96
viewsHow do I display all the columns of my BD Asp.net mvc
wanted to know how to loop when printing the columns of my grid with the values of the database, but it displayed only 1 result even the database being huge, here the code, thanks for the help…
-
0
votes1
answer250
viewsAlert on condition in Controller Asp Net MVC
Good evening, I tried looking in other posts and did not find the answer. I have a Controller in my Asp Net MVC project that has this condition: if (resultado == null) { ModelState.AddModelError("",…
-
0
votes0
answers370
viewsMVC Upload Image and send the database
Good evening I’m making an online shop for a discipline and I was wondering if someone could help me create the image upload to the Database. The purpose is to add in the admin page and appear in…
-
0
votes1
answer605
viewsHow to query select and call the connection from within
I need help for my dao structure, as I call the connection, how I select within the function and how I list in my main the information coming from select. As it is so far: Connection to the bank.…
-
0
votes1
answer60
viewsAccess one module from another
Well, I’m learning how to implement MVC with the Express framework, but I came across the following situation in my app.js file: var express = require('express'); var consign = require('consign');…
-
0
votes0
answers21
viewshow to define routes in MVC
good night.. I have the following Controller: Homcontroller with Action: Login By clicking the enter button my URL is as follows: http://localhost:58379/home/login I would like the URL not to be…
-
0
votes0
answers208
viewsWeb api c# relationship between tables
I’m trying to make the relationship between two classes "Tables". I am mounting an API for MVC5 EF6 in Visual Studio however I need information from one class to appear in the other. public class…
-
0
votes1
answer52
viewsView select ASP.NET Sqlserver
I’m maintaining 1 controller and I’m taking the data from my database and trying to display it in the view, however I can’t pass select to the view, can anyone help me? i need to pass all select…
-
0
votes1
answer426
viewsHow to create a controller with data from another table in ASP.NET?
I don’t know how to properly create an Employee Controller. The Employee class is linked to three others, being CBO, Company and Department. So in the database schema, they get these three primary…
-
0
votes1
answer143
viewsDoubts about the Repository - Anemic Model - MVC
I see many criticisms of the anemic model of application, so I decided to remove this doubt. I have two ASP.NET MVC applications that could share the same Models (will make use of the same…
-
0
votes1
answer248
viewsBlock download in an audio streaming
I have a Web MVC application in which it resumes an audio stream according to the received parameters: public new ActionResult File(string q, string url) { try { var query = new GetFileQuery() { q =…
-
0
votes3
answers139
views -
0
votes2
answers156
viewsPHP does not recognize connection as parameter
I’m making a system using MVC (first time I use it in PHP), and when I will login appears: Uncaught Argumentcounterror: Too few Arguments to Function Login::login(), 2 passed in C: wamp64 www…
-
0
votes1
answer99
viewsCan I call a class that only does a controller’s record?
I have a class of an android application that does only user registration and I called it Usuariocontroller. According to my controller, it communicates between view and model, but since the class…
-
0
votes1
answer52
viewsC# MVC project launching Exception System.Invalidcastexecption
Dear colleagues, I am trying to learn how to develop an MVC project. But I am having some difficulties. When running the program, it runs normally, but when I want to record a product input note…