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
answer83
views404 - Java EE Maven Project with Spring returns 404
I am having problems with the Spring configuration of my Maven project, in which to test if everything was working, a simple hello world did not work and apparently there are no explicit errors,…
-
0
votes2
answers100
viewsRazor language regionality
I’m having a problem with Razor (using MVC 2.1 .Net Core) when generating the screen, as follows code below, this appearing the correct date in my Local development environment, but after Publish…
-
0
votes2
answers173
viewsCheck if a registered user in the bank has already registered Cpf
Hello, guys I need to check in the bank if a logged in user already has registered Cpf and return if it is false or not. I use codeigniter in the app. I’ll send you the codes. CONTROLLER: public…
-
0
votes2
answers732
viewsRetrieve via Jquery custom "date" attribute value
I am a beginner in programming and I have a question about Jquery (if I’m wrong, please correct me...). I have a screen that generates several div’s dynamically with information about clubs, and…
-
0
votes1
answer63
viewsUser see only Items of the Operational unit that is in your registration
I have a vehicle management system. The company in which I work has several business units, so the user can only see the cars of the unit in which he works. This I managed to do, but whenever…
-
0
votes1
answer54
viewsmvc input date is changing format when I change google Chrome language
I have a website made in MVC and I have a datepicker, I want the date format of Portugal (dd-mm-yyyy), it works when I have google browser Chrome in Portuguese but when I put it in Inglish (USA) it…
-
0
votes0
answers35
views -
0
votes1
answer106
viewsFormat mysql table date and show in Smarty
I am developing a PHP page, using MVC structure and rendering tamplete files with Smarty. However, it was difficult to get a date via Mysql (see format: YEAR-MONTH-DAY HOUR:MINUTE:SECOND I would…
-
0
votes1
answer263
viewsSwap button after JSF click
Talk personal I have the following problem, I have these two buttons that make: X : Removes the value of a chart + : Adds the value of a chart I need it to look like this: When I click the X button…
-
0
votes2
answers535
viewsWhat is the "right" folder structure for a PHP MVC project using Vuejs?
I know there is no absolute folder structure, but if there is a common preference, it already clears up on the way. I usually use something like: -app (arquivos .php) -model -view -control -public…
-
0
votes2
answers531
viewsHow to name folders in PHP’s MVC structure
How should the folders be named in MVC? In upper or lower case letters? And the files? How should they be named? The controllers, must have 'Controller' at the end or just the name? And the models…
-
0
votes0
answers47
viewsList data in a Dropdown related to the result of another Dropdown
I’m rephrasing that question, because it must not have been very clear. What I want is this: Choose a restaurant at Dropdown, and the next dropdown, list the times that were registered by that…
-
0
votes1
answer36
viewswork with images in sql server + Asp net
Guys, in my project I need to work with uploading images through the site Asp.net and save them in sql server, and then I need to show them on a page as if it were products, with description and…
-
0
votes1
answer637
viewsfilter table Asp.net mvc
I need to filter a table, which is in a partial view, depending on the parameter typed in a field, which is passed to the controller via ajax. How to reload the table with the filter applied? Part…
-
0
votes1
answer218
viewsLaravel - Does not take the table column
I’m in a quandary at Laravel I can’t fix, and I’ve tried a lot of things, and now I’m stuck with this: echo of a column value of my table in a input in the html. Code in the Controller: public…
-
0
votes1
answer260
viewsHow to know if a div does not have the Hidden class with jQuery
I want to make a denial in the if,in this case below I want to see the div that has NOT the Hidden class. I’m trying this way: function AddFiltro() { if ($("#divcamponiver:not(:hidden)")) {…
-
0
votes1
answer65
viewshow to take value from an autocomplete and send to the controller (AJAX)
You can receive the chosen value from a field and use this value in a variable in the controller? This is my field: <div class="form-group hidden" id="idnome" > <label>NOME…
-
0
votes2
answers58
viewsException Handling at MODEL
How do I send an exception of the Model to View in the form of an Alert, for example MODEL : Try { // codigo }catch{ // Aqui quero tratar o erro e mandar uma mensagem pra ser exibida na view em…
-
0
votes1
answer351
viewsError trying to open SQL connection - Server Version - System.Invalidoperationexception - Connection is closed
Hello. When trying to open a connection using the class SqlConnection of lib SqlClient my class conexao - formerly null - is as follows: That class conexao is the type SqlConnection and receives the…
-
0
votes1
answer598
viewsMVC architecture - Windows Forms
How to implement the MVC standard using Windows Forms? I would like to understand better how to separate the Views, Controllers and Models following this development model.
-
0
votes0
answers82
viewsCan’t find Controller’s method
I was testing some features on the project site that I am doing in MVC, but it has a function that is not working anymore. When accessing the site it says: "Method App Http Controllers…
-
0
votes1
answer35
viewsCapture checkboxes marked in a View
I’m listing my objects through a ViewBag sent to the View, and for each item there is a checkbox, and for each contract there is an Id: @foreach (var item in ViewBag.Contratos) { <tr>…
-
0
votes1
answer56
viewsReturn amount Asp.net MVC
I have a model with category, Deposit, Date, Amount, I need the Amount add all the deposit that exist in the database and returns in the View, I did the following, only it didn’t solve. public async…
-
0
votes2
answers101
viewsMVC desktop - where is the Controller?
I modified it this example of MVC to try to make it more like my MVC vision (in which the role of the Controller is not very clear). I ended up with a program that only has Views and Model, without…
-
0
votes1
answer29
viewsJavascript onchange does not work for Combox
I have a Function in javascript that works perfectly for a textbox $('#Year').on('change', function () { alert("test"); }); However, for a combobox, it does not work $('#EntityId').on('change',…
-
0
votes2
answers1433
viewsHow to refresh a bootstrap-table after giving update?
Next, in the rows of my table bootstrap when I click opens a modal where I can change the selected information after click. I wanted that right after I clicked on the change button, my table (and…
-
0
votes1
answer253
viewsWhere do I find Web.Config in ASP.NET CORE MVC 3.1?
I’m having problems with accentuation in a View, already opened in the notebook my view’s in . cshtml and save all with UTF-8 but it is still having accentuation problem in the application still, I…
-
0
votes1
answer74
viewsdifferentiate between upper and lower case letters
I’m performing database query, but I would like to differentiate the uppercase letters from lowercase, because the way it is if I type test and value that is in the bank for Testing I get nothing in…
-
0
votes0
answers299
viewsPaging with Jquery PHP Mysql in MVC template
Well I have a little problem, I have a table with the conversations of a system internal chat that was created here in the company. My task will be to paginate the history generated with the buttons…
-
0
votes1
answer156
viewsHow to send Partialview input to a controller?
I tried to find something that would take away this doubt, but there’s nothing concrete for what I want. I’m using Visual Studio 2015 and MVC 5 and Razor in my project. I have a form (Create) with a…
-
0
votes1
answer47
viewsCorrect LINQ search syntax in MVC
I built an application with MVC that performs a query in an SQL database and returns it as a table, and now I want to add a search bar to that screen. I’ve already set up my "Index.cshtml" view…
-
0
votes0
answers18
views -
0
votes1
answer294
viewsCreate thumbnail without stretching/shrinking the image in c#
I have this code that creates me thumbnails for my project: //**** INICIO GUARDA THUMB ********** // valores para altura e largura do thumb: int resizeToWidth = 260; //px int resizeToHeight = 260;…
-
0
votes1
answer85
viewsHow to set the db variable in the Clientemodel?
I’m crawling in MVC and I’m picking up in a 'simple' registration. When you click on register, the errors appear: Notice: Undefined variable: db in C: xampp htdocs cadastromvc App Models…
-
0
votes1
answer96
viewsHow to recover data from model?
I’m using routing with Drouter and always need to take the data of such store by Slug, for this I need to do 1 select on all routes. But I don’t know how to get the id, name and Slug from over…
-
0
votes1
answer73
viewsRelationships between PHP Models
Hello! I am developing a miniframework, for my projects, and tbm create more knowledge about object orientation in PHP I created a MODEL where it is a big part of everything, and my classes extend…
-
0
votes0
answers91
viewsMini Framework Mvc
This is the mistake you are making when I call this method in my controller Warning: end() expects Parameter 1 to be array, null Given in C: xampp htdocs php_mvc Libs System.php on line 55 Warning:…
-
0
votes1
answer110
viewsIf Load javascript
I have a following script. It’s two checkboxes that will work like two radio Buttons, which happens to me, when I click on a checkbox it disables all the questions in the form and also disables the…
-
0
votes1
answer667
viewsFilling and sending forms with Spring MVC and JSP
I am initiating into Java Web, developing a stock system following Caelum’s Java for Web workbook. The whole front-end and the persistence layer have already been developed leaving only the control…
-
0
votes1
answer2004
viewsCall Action via javascript
Good afternoon, I need help with a problem until simple, but it’s knocking me down. I need to call a controller method and pass two parameters to it, I did something, but it’s not working, someone…
-
0
votes1
answer936
viewsLink calling method in Controller - C# MVC
I have a Mysql table that is shown on a page of my project: foreach (var item in Model) { <tr> <td>@Html.DisplayFor(modelItem => item.id)</td>…
-
0
votes1
answer284
viewsClarification of MVC archiving in PHP
Good afternoon guys, I’m starting with php OO and MVC, I wonder if the portion of code below escapes the standards, and if there is any improvement to be implemented. From now on I thank all those…
-
0
votes1
answer68
viewsDoubt - MVC system view
I am developing a system for accounting in PHP, Mysql, jQuery and css, the system is divided into sectors, and each sector has a graphics tab (plugin highcharts), which are generated dynamically…
-
0
votes1
answer38
viewsDoubts - JSP - Servlets
Good morning, you guys, I’m having difficulties to perform the CRUD in a test app.... I made it with the default (almost) MVC, the problem is that by clicking on the form of "New Product" and…
-
0
votes1
answer324
viewsAm I using (learned) the MVC standard in the right way?
/*Hello. A few years ago in college I took a pattern practice class with Php, and one of them was MVC. I learned from my teacher the MVC standard, but I don’t know until today the same was taught in…
-
0
votes0
answers97
viewsIf’s condition is not accepting in Asp.net mvc Razor
I want to update on one condition, however, you are updating the data without seeing the if condition using System; using System.Collections.Generic; using System.Linq; using System.Web; using…
-
0
votes2
answers1310
viewsSpring data JPA findOne() returns null
I am developing an application using Spring MVC, with spring data jpa in the persistence layer. When I try to do a search using the method findOne (or findById) returns always null. I already…
-
0
votes0
answers68
viewsabout login form with Session (user disabled) treatment
Hello, good afternoon ,I would like to know how to do the login system not let log in the administrator who is not enabled (level==5) I’ve tried everything , and code I’m moving is very mixed , I…
-
0
votes2
answers649
viewsError while doing relationship with Lockable
Call to Undefined method Illuminate Database Query Builder::belongTo() My Models <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Imovel extends Model { //definindo nome…
-
0
votes1
answer213
viewsRun Modal Open Screen Script in Ajax. C#
Problem: I’m in the Index view, it has a button that opens the Create view on a modal screen, on this modal screen I want to run a javascript code, but for some reason it is not running. I am…