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
-
1
votes3
answers519
viewsSending temporary information between classes with C# 4.0 MVC 4
Working with a Solution VS 2015 that has 2 sites, "projectA.site.com.br" and "projectB.site.com.br", their views and controllers are in the same project, named as "WEB", developed in C# . NET 4 with…
-
1
votes2
answers1849
viewsSlimframework: Method not allowed. Must be one of: GET
I’m having a hard time solving a mistake that’s been slim framework. I have a contact page that is accessed /p/contact, after accessing and clicking the send button, it tries to send the…
-
1
votes2
answers142
viewsPopular Dropdownlist from another
Good morning, I have a Dropdownlist populated from a Model class. Example: Processor, Memory, HD After clicking "+" I have to add another Dropdownlist with all values less the value selected in the…
-
1
votes3
answers726
viewsClick a <tr> to open a link
On the site I am doing has the need that when it is clicked on a table row it redirects to another page, but the line id’s are dynamic, because each line should redirect to a page that shows more…
-
1
votes1
answer232
viewsCodeingniter counting lines and displaying on View?
I want to count and display a database field. Database: nbkg Table: chamados Model: chamados_model.php <?php class dashboard_model extends CI_Model{ public function lista($chamados) { $query =…
-
1
votes0
answers59
viewsCorrectly implement mvc in php
Guys I’m starting now in php, I’ve touched a lot in java before but with php I’m having some doubts This is my form. <form name="sentMessage" action="controller"> <div class="row">…
-
1
votes1
answer449
viewsHow does the communication between classes work from client/user requests in MVC?
Good afternoon, I am creating my MVC framework to better understand how this structure works and what may or may not be done within it. His structure is mounted like this: From what I understand so…
-
1
votes1
answer337
viewsWhat is the most appropriate way to instantiate a database in an MVC standard
I’m studying POO and a little bit about the MVC structure, and I’m wondering where to create and instantiate the database to be used in the entire application, thought as the Model relates to data…
-
1
votes2
answers374
viewsCreate loop in templates with php
I’m having trouble creating an algorithm to implement the use of loops in a class of template simple. I have my class below, it gets an HTML file, looks for strings specifies that are in this file…
-
1
votes0
answers36
viewsMy bootstrap logo is too big and the rest of the menus have a large empty space between them
<body> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed"…
-
1
votes0
answers462
viewsHow can I use two models in the same view?
I have a View that has a dropdownlist and a text box. This dropdownlist is returning your items from a model. After filling these two objects, I make a request that will bring some results that I…
-
1
votes0
answers128
viewsRequest for ASP.NET MCV super slow
I have a complicated problem with my project, and I don’t know what else to do. I have an MVC4 project (after an upgrade of the MVC3 project that the company I work for already had) and it is…
-
1
votes1
answer1107
viewsRegistration in more than one table with Laravel
So, I have 3 tables (doctors, addresses and phones), first I do the insertion in the medical table using the store method that is in its own controller, and I take the id created for it and insert…
-
1
votes0
answers244
viewsValidateantiforgerytoken + Back button
Good morning. I have a login form on a web page using MVC 5, I am using the [Validateantiforgerytoken] function to validate the forms for security reasons. The page logs in correctly, but when you…
-
1
votes0
answers45
viewsRead response in json via a fetch with service-worker
I am implementing a web notification system, using service-worker and other components, in Asp.net MVC. 1° I already have my worker registered and started on the system. 2° I can display…
-
1
votes1
answer252
viewsfinalize process
I am a few days with a dilemma here in my code, I am developing a routine that reads the data of a spreadsheet and populates the data in cshtml of the page, I am programming in MVC5 with Razor. the…
-
1
votes1
answer89
viewshtaccess replace "_" with "-"
I have this code that I’m using in my MVC that I did for studies: class Como_Funciona extends Controller { public function __construct() { parent::__construct(); } public function index() { $data =…
-
1
votes2
answers263
viewsHow to enter data with JSON and MVC5
I have a registration screen, where the user can insert as many emails as he wants in each record. For this, in my View I have the following code <div class="form-group"> <button…
-
1
votes0
answers44
viewsBack-End MVC (Laravel) Real Time with Json
I took a course of Laravel, and I made my application in MVC, however, there are some balloons, which I press in JSON, click on the button "login", open the balloon login, in it there are functions…
-
1
votes2
answers151
viewsHow do I use two checkboxes in a C# mvc view to choose the query type?
Controller.cs public ActionResult pesquisarCliente(string _codigo) { var r = db.Pedido.AsQueryable(); if (!string.IsNullOrEmpty(_codigo)) { r = r.Where(n => n.Cliente.Contains(_codigo));…
-
1
votes0
answers97
views -
1
votes1
answer49
viewsUpdate only a property of an object using Outputcache in Actionresult
Hello, everybody. I’ve got a problem I don’t even know if there’s a solution like this. I have an Actionresult that returns the contents of a chart in Jquery. The result of this chart will always…
-
1
votes0
answers937
viewsSuccess : Function ajax call another javascript function
function paginacao_tabela_clientes_status(idpessoa){ $.ajax ({ type: 'POST', dataType: 'json', url: BASE_URL + '/clients/tabela_clientes_pedido_entregue', data: {idpessoa: idpessoa}, success:…
-
1
votes1
answer345
viewsValidate Radio Button Javascript + MVC Razor
Need to validate if all my Radio have been checked, can you help me perform this validation on JS? My cshtml is mounting the radio’s through a Model List<> . <div id="checklists"…
-
1
votes2
answers218
viewsI cannot capture ROUTE without using index in URL
In short, it only works if I put index.php in the URL. I think it’s in . htaccess, but I don’t know where. I wonder which configuration is incorrect or what could I do to find my error. Data:…
-
1
votes0
answers284
viewsWeb Application in ASP.NET MVC CRUD with MS access
I’m doing a job, and I need to do a web application to track tasks. The requirements are those of the topic. It is a web application made in ASP.NET MVC and access database creating a CRUD. I’m…
-
1
votes0
answers1419
viewsERROR System.Invalidoperationexception: The sequence contains more than one element
I have a system that works in several machines, but in one machine the error occurs: `The sequence contains more than one element Description: An untreated exception occurred during the execution of…
-
1
votes2
answers57
viewsInformation is not enough in the value attribute
The information that I take from the user model (getTimeLine method) reaches the homeController, but does not reach the homeView in the input type Hidden in the value attribute. public function…
-
1
votes0
answers94
viewsActionresult search result does not return all results for View Pagedlist
I noticed that on my application before adding to View the Paged List he received all items returned from Actionresult responsible for the research, then from the implementation of the Paged List I…
-
1
votes2
answers77
viewsdistinct use in a dropdownlist
I’m trying to get equal names off my dropdownlist, but they’re different id’s. I wanted where I would have to implant the code if it would be in the view, or in the controller somewhere else. Data…
-
1
votes1
answer501
viewsHow to correctly divide php code into mvc
I’m doing a website for a college class and I have to divide the code by following the MVC standard. Only I don’t know very well PHP, I’m learning during the discipline so I wanted to know how to…
-
1
votes1
answer308
viewsReturn List in a View
Hello, I’m a beginner in C# and MVC and I’m having trouble returning a data list. I have the code below and do not know how to return the loaded data from the list. Can anyone suggest me how to do…
-
1
votes1
answer980
viewsHow to translate the Full Calendar header schedule?
Greetings, friends of Stack Overflow! I’m one step away from completing a schedule using the fantastic plugin Full Calendar, in which I am grateful to exist. However, I am having some translation…
-
1
votes0
answers36
viewsGood practices for a Model that interacts with 2 tables?
I am building an MVC application, to be more exact for sending SMS messages, and I came across the following situation: I have the smsModel which is primarily responsible for sending, scheduling,…
-
1
votes1
answer308
viewsQuery in . NET Core
I am learning the logic of MVC applied in . NET Core but I have some doubts about doing the process CRUD, more specifically the Consultation. How can I make the button click communicate with a…
-
1
votes1
answer38
viewsdoubts generic class Asp.net mvc
Good night, In my project I have an application layer where the class is structured as follows: namespace ProjetoTreino.Aplicacao { public class PessoaAplicacao { private readonly…
-
1
votes3
answers135
viewsWhat is the correct MVC concept to be addressed?
I’m working on an Laravel project with the concept MVC and I had some doubts. Let’s say I have one customer management (CRUD), so I have a View (Screen with customer data, Textbox, Combobox ...) I…
-
1
votes1
answer1018
viewsSave User Session/Cookie when logging in
In WEB applications usually on the Login screen has the option Remind me, in this application will save user data once the same leave marked the option. So when the user enters the site again,…
-
1
votes1
answer208
viewsASP.NET Identity - Find user by email and password
I’m using Asp.Net Identity for the first time, along with the Entity Framework, and to create a user, I do the following code: var identityUser = new IdentityUser { UserName =…
-
1
votes1
answer82
viewsCreate a Windows Service that calls an MVC
Good people, I already have a project in the DDD model, which runs through a MVC project, only now I want the application to run as a windows service, has some practical way for it? Method in MVC I…
-
1
votes1
answer154
viewsModal Bootstrap and MVC C#
Guys I got a view call Projects that brings a list of projects and need to view the information/detail of each project through a modal Bootstrap. So I created a button that calls a function…
-
1
votes1
answer61
viewsTwo actions for the same View
I have these two action: public ActionResult Lista(int PessoaId, string Nome, string Twitter) { Pessoa p = new Pessoa(); p.PessoaId = PessoaId; p.Nome = Nome; p.Twitter = Twitter; return View(p); }…
-
1
votes1
answer88
viewsPlaying Controller Info for View CI3
I’m working with Codeigniter3 in the MVC model and I’ve been having problems for a long time, I’m slowly solving some problems here and there and I’m almost getting to the point. I’m making a query…
-
1
votes1
answer554
viewsDisplay ajax data, returned by controller in view
Hello, I’m having trouble displaying the data returned by the controller via ajax call my js is this: var requestList = $.ajax({ type:'GET', data:null, url:"index.php/Pages/loadComentarios" });…
-
1
votes1
answer68
viewsList C# missing what has already been added
I’m a beginner and I’m developing a shopping cart. The routine I thought was: Every time I click the add button, the product is sent to the controller via ajax request. I already have a list created…
-
1
votes1
answer369
viewsI am unable to load the classes using spl_autoload_register
I’m trying to load a class that is in another folder in the core.php file and I’m not getting it My browser informs this message Fatal error: Uncaught Error: Class 'Core' not found in…
-
1
votes1
answer72
viewsData selected from <option> tag to pass to Model C# - MVC
I am developing an application with HTML and C# in the MVC standards, and in one of the menus I need to put a list of options in which the user will select what he wants, this data comes from the…
-
1
votes2
answers154
viewsC# MVC 5 - Run query with another query result
Folks I’m coming from PHP and learning C# MVC while I migrate the applications I have. I came across the following problem that I can’t find a solution to: This is my class that generates the menu…
-
1
votes1
answer216
viewsJavascript return result to Controller
Good afternoon. I have a page with a multselect in jquery (Link). In this multselect there are 2 list, one with all the calories and the other with the selected values. When editing this…
-
1
votes2
answers288
viewsUnderstanding about MVC
I’m trying to understand the MVC pattern but there are so many videos differently on the web that mess the understanding. I, in turn, am using a pattern of my own. But I would like to know if it is…