Questions tagged as 'mvc'

1
answer

How to use AutoMapper 6.2.2 in Asp MVC5?

Hello, how to use AutoMapper 6.2.2 in Asp MVC5 to map my view models to the domain model. Example: In MVC I use UserViewModel and User domain.     
asked by 14.12.2017 / 12:22
3
answers

Sending temporary information between classes with C # 4.0 MVC 4

Working with a VS 2015 solution 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 MVC 4, but in two folders, "Project A" and "Pr...
asked by 18.01.2017 / 13:58
1
answer

What is the difference between cshtml and html?

Is there any difference between CSHTML and HTML , mainly in security, performance, and application? Is there a loss when using HTML in an ASP MVC project, and what are the benefits of using CSHTML in a project? >     
asked by 10.11.2017 / 23:25
1
answer

Sort by category

Next, I've already reviewed this community and got some nice fonts but it did not help me, I'm trying to separate my links by categories that are also stored in the database. If someone has a tutorial to thank me for. See the prints below...
asked by 18.05.2016 / 03:42
1
answer

Doubt regarding MVC

I'm doing my first project using MVC in PHP, and I came across this question: For ajax and requisições assíncronas , when I make a request to a page, this page that processes the ajax request would be the controller (eg view-...
asked by 25.07.2018 / 23:27
1
answer

List C # losing what has already been added

I'm a beginner and I'm developing a shopping cart. The routine I thought was: Every click on the add button, the product is sent to the controller via ajax request. There I already have a list created. So, I add the product in the list and save...
asked by 07.05.2018 / 20:13
1
answer

Two actions for the same View

I have these two actions: 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); } public ActionResult...
asked by 21.03.2018 / 15:31
2
answers

How to insert data with JSON and MVC5

I have a registration screen where the user can enter as many emails as he wants in each record. For this, in my View I have the following code <div class="form-group"> <button type="button" id="btnAddEmail">Adicionar</b...
asked by 21.08.2017 / 22:28
1
answer

Is it possible to use MVC with VB and ASP?

Is there a framework or way to work with MVC in ASP + VB? Correct me if I'm wrong, but I'm thinking of working this way: View -> .ASP Controller -> .ASP.VB MODELO/DAO -> .VB     
asked by 21.08.2017 / 19:07
1
answer

How does communication between classes work from client / user requests in MVC? [closed]

Good afternoon, I'm creating my MVC framework to better understand how this structure works and what can or can not be done inside it. His structure is set up like this: FromwhatIunderstandsofarfromMVCIthinkit'sanormaldiagram,butanyonewhowan...
asked by 15.04.2017 / 22:26