Questions tagged as 'view'

2
answers

How to receive the various fields of a view in the controller

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...
asked by 15.10.2015 / 00:10
1
answer

Retrieve 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 { get; set; } public int ListarDadosCart...
asked by 27.04.2016 / 21:47
1
answer

How to change the template (visual) of a page asp net mvc5 according to user

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...
asked by 30.08.2016 / 05:58
2
answers

Can I have more than one Views directory in MVC?

I'm transferring my project to MVC, and would like to know if you can have more than one Views folder in the project, or if you have a CSS load outside of BundleConfig , have a static page somewhere bugar all my pages.     
asked by 06.05.2017 / 20:36
1
answer

Why use 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 = "Chevrolet...
asked by 15.05.2015 / 03:34
2
answers

How to make a user in SQL Server 2008 only view a VIEW?

I made a View to send to a client, but I can not pass the general login and password for it. That way I created a user ( cliente_view ) and I would like it to only view the created View (sales_view_view). How to do this process...
asked by 26.06.2017 / 13:29
2
answers

Problem sending model to controller

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...
asked by 31.03.2017 / 19:17
3
answers

List columns according to the 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 --------------------------------...
asked by 03.05.2017 / 13:42
1
answer

Is 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's necessary to use the MVC standard, I've even separated things well, but I came across the following code in a file from my view layer >, the filename is novoAtendimento.php...
asked by 20.08.2017 / 20:14
1
answer

How to update only the model in ASP.NET MVC?

I'm using ASP.NET MVC 5 and EF6 in a project, and I have a class that does a query on the post office website and returns me the address from the zip code. Until then, all right, what I would like to do is to use onblur for as soon as I register...
asked by 02.10.2015 / 19:23