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
answer88
viewsAction form not found Not Found!
I have a PHP project using MVC, right... it was created a form for entries that would be sent by jQuery Ajax, but at the time of setting the url to which the form would be sent it does not find the…
-
0
votes1
answer125
viewsSpring mvc bootstrap
Galera is the following I have a record that I get with the bootstrap select element and I select it and I need to put a button to add this record in a table below that on the same page where the…
-
0
votes0
answers262
viewsHow to check in the API if a user being searched in the database is the user who is logged in?
I am using Laravel and I need to create an attribute (is_me) in the model to know if the current profile belongs to the user who is logged in; I was doing as below, but now that I am using API I can…
-
0
votes0
answers246
viewsI can’t make a reference to a project
Hello, I’m with a MVC Solution divided into 4 projects: Model, Persistence, Contoller and View Persistence has a reference for Model Controller has 2 references for Model and Persistence I’m trying…
-
0
votes0
answers22
viewsDoubt about templates using MVC
Following the good practices of the MVC model, would it be correct for a template to evoke another template? Or it would be a feature unique to a map or controller?
-
0
votes2
answers94
viewsHow to organize multi-level MVC application
I am developing an application following the MVC standard, and will have 2 levels of users, the normal and the admin, as regards the options of what each user can do, it is better to make a logic in…
-
0
votes1
answer52
viewsCatch <a> tag click event when it hasn’t loaded yet in $(Document). ready MVC - RAZOR
I create dynamically in my View via Razor data that is populated in a table. On my last td I have the following elements: <td class="row-actions fixed-col"><a name="excFaturamento"><i…
-
0
votes2
answers176
viewsHow to create a View to insert multiple entities
I have an entity that has daughter entities, such as: - Supplier (has main supplier data) - Suppliers - Supplier of telephones - Suppliers - etc.... Where each entity is a database table related to…
-
0
votes1
answer61
viewsReturning to the main page when accessing an invalid url
As I redirect the user to the main page of the application, in case it tries to access a url invalid. For example, www.teste/teste.html, in case the page does not exist then system directs the user…
-
0
votes1
answer1025
viewsFatal error: Call to a Member Function result() on a non-object
Hello. After hours trying to solve this problem and researches I did about the problem, I came to ask you how I can remedy this question The mistake is: Fatal error: Call to a Member Function…
-
0
votes1
answer104
viewsGet click (this) element in method
I’m refactoring a SPA using in practice the MVC with classes and etc... I made a method that is called when I click on an element <i> and would like to obtain this element to subsequently…
-
0
votes1
answer880
viewsQuery all sql tables
Good night I’m starting in the career of developer and I’m creating an application that will read an xml file. I am having difficulty passing a command in the sql database that returns all tables…
-
0
votes1
answer58
viewsHow do I mount a List or Ienumerable array in the Controller and move to View?
Good evening! I made a request to my webapi to search for data to use=it in a DropDownlist @Html.DropDownList("Id","Descricao"). In My controller, I can pull Webapi results in collection, I treated…
-
0
votes3
answers1677
viewsHow to disable Submit from a form by "Enter" - c# MVC
I am developing a web project in c#, and for Forms I am using the Html.BeginForm. How to disable Submit by pressing the key Enter? Can do without javascript?
-
0
votes1
answer271
viewsShow validation error in View
I have a problem, I can not show the error in the validation of forms in the View (MVC done by me) correctly, it is showing in wrong place, I would like it to be on top of the button or the bottom.…
-
0
votes1
answer115
viewsTxt displays duplicate information
What this application does: the user has to choose the right answer to the question. I have only put a question for now. After save the answer (is inside a . txt) he can see result. And there’s the…
-
0
votes1
answer66
views.txt shows no old messages, takes only the last and displays
What the implementation is: volley the result of a question (Qtd hit and Qtd error) and showcase on another screen. What the app is doing: saves everything and only displays the result of the moment…
-
0
votes1
answer48
viewsUse a different CSS in each view
I am developing a site using the MVC standard, I would like to know if it is possible to use a different CSS in each view. If so, how?
-
0
votes1
answer274
viewsMargin problem when generating pdf
I am making a report, when generating the pdf, I tried to implement the margin, but continues to cut the table in the middle and continues on the other page. This is happening in the margin, even…
-
0
votes1
answer166
viewswhere to mount the table in a PHP MVC project with ajax?
Inside the model I have a series of negotiations to show the final result. //CONTROLLER public function index(){ $this->view->render("views/index.php"); } public function read(){ $data =…
-
0
votes0
answers32
viewsCross Layer Data Manipulation MVC
Good morning, everyone. I have a question/Problem. I’m using php and Javascript/Jquery with the design standard MVC and DAO. I want to know how to get the data from the database on DAO using AJAX…
-
0
votes1
answer126
viewsImage does not appear in the project
good morning, I am trying to put a pdf icon on my project, but it does not appear. I am using f:Facet this way. <h:commandLink> <p:graphicImage name="/resources/img/pdf.png"/>…
-
0
votes1
answer92
viewsWhat Structure/Role of a Web Service?
I have a project in which I should create a website and an application (Intel XDK) of the same, I thought it would be more ideal to have a 'core' of the application itself to make the database…
-
0
votes0
answers114
viewsautoload in the - php classes
It is a scheme that I am inventing since in this project I do not go by framework for being very simple, Working with MVC in the Framework (Codeigniter), But I don’t have a separate Model class with…
-
0
votes1
answer38
viewsPrevent Refresh on the page from generating additional queries to the BD MVC C#
This is the case. My Actionresult does a heavy database query and returns randomized data by business definition. The user can refresh the screen. If you update the page, you lose what was done and…
-
0
votes1
answer192
viewsReporting Modeling in ASP NET MVC
I have several reports in the company, and I need to migrate them from webforms to MVC. My question is.. Do I need to create a template for each report? Is that correct? If not, how can I do? For…
-
0
votes1
answer207
viewsCreate mask for text
I need to return a CNPJ value with a mask via Javascript to a text in a td tag of my html code. The value is returned from the standard CNPJ formatted bd as in the code below: <tr…
-
0
votes1
answer2484
viewsPrint data from a PHP object array
I beat myself a little with return of the database using POO and MVC, and in case I’m bringing the data from the database where the registered date is equal to the current date, the problem is that…
-
0
votes1
answer241
viewsError running JSF project by eclipse
Good evening , I’m trying to run a project in the eclipse, but Tomcat is throwing me the following exception. Does anyone know what can be? fev 25, 2018 8:57:57 PM…
-
0
votes1
answer512
viewsc# Web mvc Send PDF without saving to disk and send by email
Hello, I have an MVC web application and I have a method to send an email and I have to add a PDF that is dynamic, I have to attach it in this email without saving on disk. Could someone help?…
-
0
votes1
answer235
viewsASP.NET MVC - Passing data between Views
I have two tables: Tb_1 and Tb_2; both have a column id and are related to each other in a Microsoft SQL database. For example: I selected the record paragraph 2 in Tb_1. When triggering the command…
-
0
votes0
answers102
viewsDifficulties Asp.NET MVC... window does not appear correctly
I am new to the world of Asp.net Mvc and have had some initial difficulties. I’m trying to develop a calendar but by clicking a day to make an event... the window appears in a strange way, someone…
-
0
votes0
answers63
viewsSave value from a variable within a controller to use in another DLL run method
I need to save information in the User Login and use this information in another DLL. EX: Projeto.Web Projeto.Domain.dll When logging in the User Project.Web controller, I need to save which project…
-
0
votes1
answer7928
viewsWhy Trying to get Property of non-object in?
Guys I’m trying to return database data using this code: //avoid Undefined variable $errors = []; if (Input::exists('post')) { $validate = new Validate; $validation = $validate->check($_POST,…
-
0
votes1
answer86
viewsHow does Spring MVC identify Model, View and Controller files?
I wanted to know how Spring tracks these files. So far I know that Spring MVC has the DispatcherServlet that is responsible for sending the requests to the controllers that respond to such URL. But…
-
0
votes0
answers75
viewsCurrency on Asp Net MVC website
I created my site in standard Asp net MVC and I realized that when I run the site on my machine with Windows-PTBR appears the currency of the site (which is an e-commerce) as Real R$. While hosting…
-
0
votes1
answer100
viewsUsing cache during user session
I am using Outputcache in an Asp.net mvc5 application to cache a list in my application as follows : [(Duration = 60, VaryByParam = "none")] public ActionResult Index() {} I just need to take…
-
0
votes0
answers120
viewsMvc dbSet<Reserve> does not contain a definition for getAll()
I created this method, however I get the error described above, someone knows a possible solution? public IEnumerable<Reserva> GetBookingsByRoomId(int Id) { HotelEntities db = new…
-
0
votes1
answer37
viewsHow to use Dropdownlistfor cascading in Asp.net mvc
I use Select2 to popular a dropdown and would like to after choosing the item I update another dropdown or a label by doing a search. ex: @Html.DropDownListFor(m => m.IdEstado,…
mvcasked 6 years, 5 months ago Ulisses Correia 1 -
0
votes1
answer1601
viewsCSS and JS are not being applied to the project in Spring MVC (config via java)
I’m a beginner with Springmvc and I’m learning through the book Spring MVC (Master the main java web framework, by Alberto Souza, code house). Before starting with Spring, I created a Maven project…
-
0
votes3
answers84
viewsWhat are the good practices of MVC with Entity Framework?
I would like to know what are the good practices of MVC using the Entity Framework, regarding the MVC folders. When I create the Entity Framework, it automatically creates the database file, and the…
-
0
votes2
answers100
viewsHow to recover address ID?
I’m using Asp.mvc. On my route has the ID, the page address for example has http://user/1 . I wanted to get this number 1 at the bottom of the page, there’s some way to do it?…
-
0
votes1
answer57
viewsHow to get rendered html from an Actionresult in the ASP.NET MVC Controller
I am performing a PDF export where the document content is the html of a Rendered View. How do I do it?
-
0
votes0
answers209
viewsJava Spring MVC error 400 - Search for 2 fields
You guys, blz?! Next, I’m finalizing a project to complete a chair in college and I’m getting a very strange mistake. I’ve already checked with another classmate, but we can’t identify. I need to…
-
0
votes1
answer68
viewsPages . aspx in View folder in ASP.MVC project
Good afternoon, everyone, I am a beginner in MVC architecture and I have a question about an ASPNET.MVC. I wonder if it is possible in the "View" folder of the project, to put an "aspx" page along…
-
0
votes0
answers179
viewsSpring Web MVC - Controller not working
I’m trying to make a basic application, with a controller that sends a message to the screen and puts CSS into the project, but either CSS works or the controller. Follow the codes: 1) Netbeans…
-
0
votes0
answers537
viewsSyntaxerror: expected Expression, got '<' in AJAX call
Hello I have an error in an AJAX call in my Javascript. For some reason, it does not arrive at the function in my Controller and gives the following error: Syntaxerror: expected Expression, got…
-
0
votes1
answer156
viewsError showing accent words in View
Good afternoon, All words that have accent on my system are being formatted wrong as in the example below: Auto de Inspe¿¿¿o Where it was to be auto inspection. How to solve this, knowing that I am…
-
0
votes1
answer102
viewsProcessing of text files
I am processing files .txt, however I process more than 1 file at a time, but in the database only saves 1 file, debugging I see that it reads and processes the 2 files, or up to 3 depending on how…
-
0
votes1
answer189
viewsADVPL - Set focus on an MVC field
I have an entry point in the product register, where I enable the button F12 to call a function when including a product. This function displays a screen (MSDIALOG) with fill facilitator and assigns…