Most voted "view" questions
This is the application display layer (which is separated from the other layers in the MVC standard).
Learn more…185 questions
Sort by count of
-
28
votes2
answers1906
viewsWhat is the View in the MVC standard?
I started in 2016 to wear pattern MVC, the concept of Model and Controller I fully understand, but the question of View intrigue me. What is the View on a model MVC? I know that’s what the customer…
-
15
votes2
answers288
viewsWhere should exceptions be handled to display to the system user?
What is the best place to handle an exception and send a message to the system user in a desktop application? In the controller, in the view or elsewhere?
-
12
votes1
answer480
viewsPassing parameters with Asp.Net MVC
In asp.Net MVC. What’s the difference between using ViewBag, ViewData e View Tipada? And when we should use them, there is some specific situation? There is a difference in performance between them?…
-
10
votes1
answer3515
viewsWhat is Partial View?
Using the Controller I can return a Partial View, JSON, string and other things. What is a Partial View? Is it widely used in projects? Why use it?
-
9
votes1
answer167
viewsIs it wrong to use stab wounds in the Laravel view to present elements to the master user?
I wonder if it is problematic to do this kind of validation in the views of Laravel. Example: Only a master user can delete certain record, so I present the delete button only if the user is master…
-
8
votes2
answers764
viewsHow to generate Thumbnail of a Video for Android?
I’m developing an app for android, one of the screens of the same should generate thumbnails videos and display them in a list. Like the image below. I was able to generate thumbnails of images, but…
-
6
votes1
answer393
viewsonClick on dynamic button causes error "Cannot resolve constructor Intent"
I’m trying to create a dynamic button, and in it put the click function. Button btnJogarNovamente; btnJogarNovamente = new Button(this); btnJogarNovamente.setLayoutParams(new…
-
6
votes1
answer1308
viewsCreate View in Mysql through Laravel
How can I create a view in the Mysql database through migrations of Laravel? I found nothing in the documentation.
-
6
votes2
answers1944
viewsView or temporary table?
Analyzing a code problem I came across different approaches to similar problems where one has a view for data access, and another uses a temporary table. I searched and found this question which…
-
5
votes1
answer356
viewsHow to change the template(visual) of an Asp net mvc5 page according to user
Here’s the thing, I need to read a property that returns me 1,2,3... and with it I determine what kind of visual the page will have, template01,template02... how I would do this using areas, and…
-
4
votes1
answer275
viewsWhy use the Ienumerable?
I have the following code in a Controller: var carro = new List<SelectListItem> { new SelectListItem {Text = "Pegeout", Value = "Pegeout"}, new SelectListItem {Text = "Chevrolet", Value =…
-
4
votes2
answers335
viewsHow to receive multiple fields from a view in the controller
I need to create a multi-field Insert at the same time! My system has several tables and relationships and I am struggling at this point. I have this registration screen: With that code: @using…
-
4
votes1
answer2526
viewsRecover view value for controller
Goal: Retrieve view value for controller [Httppost] I created a Generic class with gets and sets public int ListarDadosCarteira_Resultado { get; set; } public string ListarDadosCarteira_Descricao {…
-
4
votes2
answers118
viewsCan I have more than one Views directory in MVC?
I’m transferring my project to MVC, and I was wondering if there could be more than one folder Views in the project, or if you can load a CSS outside the BundleConfig, have a static page that kind…
-
4
votes2
answers2348
viewsHow to make a user in SQL Server 2008 view only a VIEW?
I made a View to send to a customer, but I can’t pass the login and password to the general access. This way I created a user (cliente_view) and I would like this to view only the created View…
-
4
votes2
answers392
viewsOpen View with Parameters
I have this Script: $('#Musico').change(function () { var id = $(Musico).val(); var url = '@Url.Action("Votar","Chamada")'; var tipo = 1; $(function ChamaVotar() { $.post(url, { id: id, tipo: tipo…
-
4
votes1
answer125
viewsIs it correct to use PHP code in the view layer along with HTML?
I’m starting now in the area and I have a college job to do and it is necessary to use the MVC standard, I have even separated things well, but I came across the following code in a file of my layer…
-
3
votes2
answers202
viewsView . HTML with Vraptor. Is it possible?
I am a student of Analysis and development of systems and I love programming, I studied the basics of Java and I am searching frameworks just to get a sense. How do I return an HTML page in a…
-
3
votes3
answers1207
viewsWhat’s the difference when calling a function with parentheses and without in.py urls with Django 1.7?
In mapping my.py urls I use from common functions to class-based views. I want to know the difference between calling the view with or without parentheses, given that if I have the input url(r'^$',…
-
3
votes1
answer230
viewsProblem switching from Controller to Model
I’m making a code where it involves MVC. To get past the View to the Controller I’m not having problems, but when will I pass the Controller to the Model I can’t do it, the variable is imported, but…
-
3
votes1
answer549
viewsHow to update only the model in ASP.NET MVC?
I am using ASP.NET MVC 5 and EF6 in a project, and I have a class that makes a query on the postal site and returns the address from the zip code. Until then, all right, what I would like to do is…
-
3
votes1
answer202
viewsExplanation about tags of Android components
I’m developing a app for Android. I found some tutorials to help me in the development but found some tags that I did not understand their proper explanations and when I should use each of them. Are…
-
3
votes1
answer512
viewsHow to pass two variables from a view to the controller?
i have a link where I already pass a variable to the controller. It works ok. How do I pass two? My link in View: <a href="{{url("/ordemvar/$equipam->codigoequipamento")}}"><i…
-
3
votes3
answers603
viewsProblem sending model to controller
I’m having trouble forwarding my model to control: Class: public class Pessoa { public virtual long Id {get; set;} public virtual string Nome {get; set;} public virtual ETipo Tipo {get; set;} public…
-
3
votes3
answers200
viewsList columns according to current date
I have the following view: select * from chamdosrow It returns as follows: NOME 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31…
-
3
votes1
answer62
viewsView with many, but many case when’s
I’m riding a view in the database that the view pai uses as another query view, which in turn calls again view (in that view is made the sum of several items and brings the total per line), in view…
-
2
votes1
answer1692
viewsDataannotation: How to validate "e-mail" property, check whether or not it exists in the database, with attribute other than in the client and yes in the Server
I have a layered application, and in my presentation layer, I have a ViewModel that is UsuarioViewModel inside this I have a Property calling for public email {get; set;}. Already this validating…
-
2
votes1
answer430
viewsWhat is the best way to organize views in Django?
I have views.py in my study project where I group it from methods to represent views (methods that return Httpresponse), to generic views based on class (such as Detailview, Listview). I was…
-
2
votes1
answer1588
viewsMVC - Doubt about controller and view PHP
I’m studying MVC a few days ago and I came across a question, I need a view to register, but this view would not do anything just send the data my doubt is that I need a control just to set up this…
-
2
votes1
answer174
viewsHow do I open a Viewcontroller via Local Notification?
I have an application that sends notifications to the user from time to time, but how do I open a View without being the main View, when the user clicks on the notification? Example, Whatsapp…
-
2
votes2
answers2873
viewsLaravel - How popular a combobox in the 'on load' event of a view (Blade)
I need to popular a combobox with database data, but this fill should occur while loading the view. Since the view is not the right place to write code, how to feed the combobox? Through a method in…
-
2
votes1
answer1035
viewsHow do I remove a view created in java code by the id of this view?
How do I remove a view by Id. Because in my application it has an "add" button to add a group of components that "group" is a LinearLayout has a field and a delete "X" button. When the "X" button is…
-
2
votes1
answer92
viewsHow to insert information from a model that has a Relationship?
I have a listing of Products and this listing has the supplier code, I need to enter the name of the supplier in this listing. My Controller: public ActionResult Index() { IEnumerable<Produto>…
-
2
votes1
answer809
viewsTree View hierarchical Dynamic C#
I have the following situation, my select returns me 3 fields micro (son), descend(descend from the child) and macro(parent) micro and macros fields are integers and can be any number not following…
-
2
votes2
answers4575
viewserror "Undefined object reference to an instance of an object." when displaying a null value in the view
Within C# MVC5, I am creating a user registration form with several fields. One of them is the Function (Bonus) field, which the user may or may not have. Follows the User class: public class…
-
2
votes1
answer1016
viewsView with parameters without external Where?
I need to receive parameters for a view, but how she got the COUNT(DISTINCT DTA_HOR) I can’t with the where external. Would it have some other way? SELECT EX1 ,EX2, EX3, EX4, (SELECT COUNT(DISTINCT…
-
2
votes1
answer1880
viewsHow to pass data searched by a view back to the view itself
I need to search a database through a view (Laravel Blade). The data obtained, stored in an array, need to display on the page called the database. I am not succeeding in returning the array with…
-
2
votes1
answer5249
viewsHow to use view variables in Laravel 5
I am developing a project of "loans" of things of a company and I am locked in a module of keys. So I don’t have much experience in the Laravel, so I came across the following situation: Database -…
-
2
votes1
answer1705
viewsCalling a function in Views in codeigniter
I have that function in the models: function sumContasReceber() { $this->db->select('lancamentos.*'); $this->db->from('lancamentos'); $somaCR = "SELECT SUM(valor) as SOMACR FROM…
-
2
votes3
answers2508
viewsHow to take a variable that is in the controller and put inside a view (Adjustable)
I’m messing with Lockable and from there came the following doubt. I need to take a variable that is in the controller and put inside a view. In case I am sending an email with data contained in a…
-
2
votes2
answers1884
viewsWhat are model and model variables for in a View?
What are variables for @model and Model in a view? In my view I use it at the beginning of the code: @using Html5DataList.Models @model List<Estabelecimento> And to access the data, I use it…
-
2
votes1
answer182
viewsPass information between two PHP pages
good afternoon! I’m having the following problem: I have a page named php locality which has the fields "name" and "city". In the name field, I enter the name of the locality, as for example,…
-
2
votes2
answers347
viewsCalling a controller action for views
I’m using Yii2 and doing a website project where one of the features is to list the movies linked to a specific user. I already have a method to associate movies to accounts and one that makes the…
-
2
votes1
answer912
viewsAddress of pages with codeigniter
Hello! I’ll be very brief. I’m having trouble defining a correct href="". After clicking a link in the menu, it is directing to the HOSTGATOR page '404 - page not found' Here’s the controller code:…
-
2
votes1
answer505
viewsPass variables on all renders
I have an application using Nodejs, Express (and a few more dependencies). I reduced the application to the file below to explain my question: app js.: // Dependências. const express =…
-
2
votes1
answer48
viewsConversion error when sending input to controller to save
Good evening guys, I’m having trouble solving this problem, I hope you can help me... When trying to save data from View only one field returns this error: Failed to Convert Property value of type…
-
2
votes1
answer40
viewsNull Arriving Object List in Controller
I have a question and hope that someone can help me. I am not being able to send objects from my View to the controller. Every time it comes, it’s empty. I’ve tried a lot of things and I can’t seem…
-
2
votes1
answer58
viewsI can’t get into the foreach of a Lade at Laravel 5.7
I’ve got a little problem I haven’t figured out yet, I’ve got a View and I can’t get into foreach of the same, follows the View: <div class="form-group"> {!! csrf_field() !!} <!--{{…
-
2
votes1
answer250
viewsView much slower than direct mysql query
Good afternoon, everyone, I’m migrating a Delphi/Firebird system to Php/Mysql, And I’ve come across a situation I can’t understand, I created a view in mysql to generate a report, the same view I…
-
2
votes1
answer47
viewsHow to use AJAX that takes the value of a field for a select and returns to a modal in a partial view?
My code here: View: <tbody> @for (int i = 0; i < Model.lNaoIncluidos.Count; i++){ <tr> <td style="text-align: center;"> <span data-toggle="tooltip" data-placement="top"…