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
votes0
answers38
viewsReceive $POST data to validate login
A little help hehe I’m having trouble creating a login validation in a pattern MVC. I think I managed to structure it right and my login screen appear in the index. So far everything okay. When I…
-
1
votes1
answer234
viewsHow to turn a JSON into a table/paged list using . Net Core MVC?
I’m studying API access and I’m using the Github API. I want to make a screen in which it is possible to search by name the repositories that match the criteria passed. But Github’s results are…
-
1
votes1
answer159
viewshttppostedfilebase - Bringing null when I have many files with the big name
Good morning Next friends I have a web system mvc with c# and need to upload several files simultaneously. Until then, all right, but when the files have a big problem name I will exemplify. I have…
-
1
votes1
answer39
viewsMy Javascript/AJAX function is not converting Date to the correct format
Hello I’m having a problem with an MVC project. My View needs to return Data values to some Text Boxes (from the record selection by a Data Table) so that the user can do the record Edit. The…
-
1
votes0
answers37
viewsHow to take "x_" from Html tags in outlook with ASPNET
I am having the following problem when sending an email with my application, at the time of opening the email, the Outlook provider modifies the template tags by putting the "x_" at the beginning of…
-
1
votes1
answer144
viewsExport a Jquery bootgrid to Excel
I searched here on Stak and online, and I have seen some articles and tips on how to export an HTML table to excel. But in my case, I think it’s a little different because I’m using Jquery Bootgrid…
-
1
votes0
answers137
viewsHow to make a function in Javascript that receives a Datatable as a parameter?
Hello I made a generic function in Javascript that needs to receive a Datatable as a parameter, but for some reason it is not taking the data from this Datatable. This function is called when the…
-
1
votes0
answers51
viewsmvc HTTP 404 error
Good, I created an ASP:NET WEB Core 2.0 Appl project. I created views and controllers. When I do a Ubmit via: <form asp-controller="Audit" asp-action="Search" method="post"> Instead of opening…
-
1
votes2
answers862
viewsNo parameterless constructor defined for this Object
I am trying to create a constructor with parameters as shown below: public class TestController : Controller { private readonly IAppService _servico; public DashboardController(IAppService servico)…
-
1
votes1
answer173
viewsASP.NET MVC after upgrading the packages the default template is lost?
I’m new in this area, I’m "walking barefoot on rocks" to learn ASP.NET, I use VISUAL STUDIO 2017 Community 2017 Version 15.8.4. When creating a new ASP.NET MVC project the visual studio generates an…
-
1
votes1
answer55
viewsChange /controller? id=1 URL to /controller/1
In my view I have two buttons that pass parameters via GET to my controller index, the problem is that the URL does not stick to the traditional ? id=1 and I wanted to make it look like this:…
-
1
votes0
answers57
viewsIs it possible to simulate a C#FTP server?
I need to develop automated integration tests in an application whose features have external dependencies like FTP. I wonder if it is possible to simulate an FTP as well as to simulate a database…
-
1
votes1
answer26
viewsMVC Insert text into a label when the button is selected
Prentendo fill a label when I click a button. I created a method, a label and a button. The goal is that when pressing the button, the label is filled with the data I receive. I have practically…
-
1
votes1
answer413
viewsMVC PHP + AJAX can’t pass json_encode to ajax’s backup
Hello everyone and I thank you Have the form validation class where you take all form errors: // Validação final do cadastro public function validateFinalCadastro($arrVar) {…
-
1
votes1
answer379
viewsMVC - Intermediate php file in the View and Controller interface
Hey there, guys. I was reflecting on the existence of a relationship step of the structure of my project. The organization of my project is as follows: [1 ] When accessing the page the user can…
-
1
votes0
answers434
viewsUpload files and images with PHP and Mysql
I’ve got a bug in my code only I don’t understand that is the code: <?php $db = new PDO("mysql:host=localhost;dbname=filedb;charset=utf8", "root", ""); $msg = false;…
-
1
votes0
answers125
viewsWhere do I put my classes in the MVC standard?
I am writing a MVC application in PHP and the directory structure is as follows: - root ¬ app ¬ controllers ¬ models ¬ views ¬ core ¬ config ¬ public In the "app" folder is the MVC layers. In…
-
1
votes2
answers517
viewsPass parameters through the url
I’m trying to pass a parameter of my view to my controller by the url and I’m not getting it, as you can see in the code below I’m using viewbag, I don’t know if it’s an error on the route or…
-
1
votes2
answers303
viewsSwap background image from Asp . Net MVC page dynamically
I’ve been doing some research, but I can’t get anything to say about it. I had done it before, in Web Forms, but in MVC I hadn’t needed it yet. I need to change the background image of the page…
-
1
votes0
answers37
viewsSend multiple checkbox via model to Controller
I have a class: public class TreeViewConfigVm { public string plant_selected { get; set; } public List<SelectListItem> criticality { get; set; } public List<SelectListItem>…
-
1
votes1
answer245
views.net core json files
I am making a simple web application, it will read a json file: { "hotelName" : "Jumeirah Creekside Hotel", "thumb": "https://loremflickr.com/130/100/dubai", "stars" : 5, "location" : "Garghoud",…
-
1
votes1
answer248
viewsWhy do Codeigniter 3.1 routes not work?
I’m a beginner in PHP, recently decided to learn and started reading the book "Codeigniter - Productivity When Creating Web Applications in PHP". In an attempt to follow the creation of an…
-
1
votes0
answers42
viewsHow to access the stream before compression runs via Global.asax?
On the server side apply compression when possible: public MvcApplication() { this.BeginRequest += OnRequestBegin; this.PreSendRequestContent += OnPreSendRequestContent; } private void…
-
1
votes1
answer49
viewsDatabase and Listview do not work
I’m trying to create an app that records data and displays it in a Listview, and then gradually sophisticate the app, but when it comes to saving the data in the database, it doesn’t save. In Debug…
-
1
votes1
answer312
viewsTake the value of a dynamic span element
I need to get an id value of a dynamic span and I’m not getting it. What I’m doing wrong? Error: There was an Unexpected error (type=Bad Request, status=400). Required Long Parameter 'id' is not…
-
1
votes0
answers165
viewsLINQ return with repeated values
I’m having trouble with a consultation within my application. The values returned by my query are repeated, the same value appears 407 times, when the right one would have to be 407 different…
-
1
votes1
answer104
viewsAjax request responding with status 500
I am using Spring, I test the return in the service and controller methods and are correctly returning what I want, and is entered in the database, but even so gives the error: My request:…
-
1
votes0
answers145
views -
1
votes1
answer90
viewsAbout implementation using spring
Hello, I need a help, I have a bank with two tables 1-Institution 2-People, for that I created in the model these 2 classes do not know if it is the right way more I did so. I created the Repository…
-
1
votes1
answer101
viewsMVC and JAVA doubt
Giving continuity to a project of the college that was stopped, I intend to do it in Java already I did and I remade from scratch about 2 times however, it was horrible and to each class I realized…
-
1
votes1
answer60
viewsHow to generate and download excel from a large volume of data in ASP.Net MVC?
Hello I have web application that provides a download of contents of the database in excel format, I am using in my controller a method of type Fileresult. Below abridged version of the code. Simple…
-
1
votes0
answers58
viewsHow to pass a view ID without a template
I’m trying to send a template-less view ID to a controller, but I’m not getting it. the code I have is as follows: View @model string @{ ViewBag.Title = "Edit"; string classHtml = ""; } @using…
-
1
votes1
answer40
viewsDatabase occupied
public List<R> GetA(DateTime dataMov) { connection(); List<R> menuList = new List<R>(); try { con.Open(); using (SqlCommand cmd = new SqlCommand("SELECT r.nome,r.cos,r.estoque,…
-
1
votes1
answer3143
viewsWhat to do to call a function from another controller in Laravel? I would like to implement best practice
I have a boletosController controller need to call the Function create in the tradeController; boletosController.php; namespace App\Http\Controllers; use App\Repositorios\Boletos; use…
-
1
votes1
answer37
viewsAccess time c# and show in Alert
I am trying to display a message according to the return of my method, which is a Task<ActionResult> , but when I call the TempData, she’s coming empty, where I’m erring? @section scripts {…
-
1
votes0
answers34
viewsReturn of method messages
I recently started to study more about object orientation, but most examples are very generic and only for educational purposes. The point I am doubtful about is the return of methods. In a user…
-
1
votes1
answer35
viewsBring value Dropdownlist ASP.NET MV5
I’m bringing a dropdown of a table of Physicians in the View and it brings normally, but I want to take the value of it (Selected name) in the jQuery to bring other information after selected. But…
-
1
votes1
answer227
viewsProblem running web application . net with oracle. Duplicate key
Good afternoon, I implemented a Mvc app that uses Oracle access through Oracle.Manageddataaccess version :4.122.19.1. But received the following message from IIS when running the app: Erro de…
-
1
votes0
answers91
viewsCorrection of Service Spring Boot methods
Good evening, I am creating an API with spring based on a course. However, it has some methods that are possibly depreciated in the version I am using(2.2.6) course version(1.5.10). I need to apply…
-
1
votes0
answers32
viewsAjax return error when sending Formdata with file to MVC Controller
I have a problem that started to occur for a while. I have a view that sends a FormData with attachment information (input type file) to a MVC controller via an Ajax. The controller returns a Json…
-
1
votes0
answers35
viewsProblem sending View information to Controller
I’m doing a simple CRUD on ASP.Net MVC and implemented a search box to search for a product in the database. But when I click search, the Viewmodel item passed in the Taghelpers is not sent to the…
-
1
votes0
answers31
viewsProblem passing parameters to a Java controller
I am having a problem trying to pass parameters to any controller, using as example two of my controllers: The controller1 has the following function to navigate to controller2: public void…
-
1
votes1
answer90
viewsCORS policy . net core and angular 8
I’m having problems with CORS policy. I pulbligated a site on IIS and did not put host name (accessed by IP). When I put the host name (www.nome-do-site.com) the system stopped working and the…
-
1
votes1
answer72
viewsThe Viewdata item that has the 'Name' key is of the 'System.String' type, but must be of the 'Ienumerable<Selectlistitem> type
Speak, guys, I’m new in the area of ASP.NET and studying Identity I came across a typo error when performing a new user registration. The project was done with the authenticity of the VS. I did the…
-
1
votes0
answers25
viewsConvert a String to Ienumerable<Selectlistitem> in ASP.NET
Speak, guys, I’m new in the area of ASP.NET and studying Identity I came across a typo error when performing a new user registration. The project was done with the authenticity of the VS. I did the…
-
1
votes0
answers24
viewsJquery Ajax does not display Object in the PUT method, using . net mvc
I own the Object var obj = { nome: "Felipe", idade: 23 } I created an ajax call by jquery like this: $.ajax({ url: 'ConfigCode/UpdateOptionsStatus', // route controller na web type: 'PUT', data:…
-
1
votes0
answers47
viewsHandle dynamic role and function names
I’m on my first Golang project, which consists of a small router for an MVC structure. Basically, what I expect him to do is take the request URL, separate it into pieces, and forward the execution…
-
1
votes0
answers18
viewsError Express: 'Error: Failed to lookup view "index" in views directory'
I’m trying to set my default folder of the views but something is going wrong because it does not find the views... By the error that returns it seems that he is fetching them in the wrong folder.…
-
0
votes0
answers24
viewsRelationship N:N on Ruby on Rails
I have 3 tables in my project that need to be related: responsabilities, knowledges and knowledges_responsabilities, which summarizes : Each responsabilitie may have 1 or more Knowledges, and each…
-
0
votes1
answer235
viewslink_to action and id
I want to do an action to change the password and I have the following link_to to redirect to html.erb with the correct user <%= link_to 'Mudar Senha', "edit_password_form/" + @usuario.id.to_s…