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?
In an MVC project developed in PHP, should I validate what in model and what in controller ? Hash of passwords I'm doing in the set method of the model classes.
Some validations that are not returned to the user I believe I should do...
I've just started to study mvc, and I have a question. How to make my ajax execute certain method of my controller.
Note: I am not using any framework, here is the code below.
View
<div class="form-cadastro">
<input type="text...
I need to create an Insert from multiple fields at the same time! My system has multiple table and relationships and I am having difficulties at that point. I have this registration screen:
Withthiscode:@using(Html.BeginForm()){<divstyle="wi...
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 { get; set; }
public int ListarDadosCart...
How would I do this using areas, and navigating through the main controllers (which are at the root of the project).
Basically it is the following: www.algumacoisa.com/home/index = > redirect to the controller that will check t...
I have a method in my controller which is called through ajax. It populates a global variable within this controller .
Is there any way I can access this global variable already populated by the first method if I call another ajax method o...
I have the following code in a Controller:
var carro = new List<SelectListItem>
{
new SelectListItem {Text = "Pegeout", Value = "Pegeout"},
new SelectListItem {Text = "Chevrolet", Value = "Chevrolet...
I have a table that is rendered dynamically when passing an array of data to it.
I have access to the data of each "row" as follows:
{
"data": function (data, type, val, meta) {
return "<div style=\"color:green;\">" +...
I'm having trouble forwarding my model to the control:
Class:
public class Pessoa {
public virtual long Id {get; set;}
public virtual string Nome {get; set;}
public virtual ETipo Tipo {get; set;}
public...