Questions tagged as 'mvc'

2
answers

Angular.js, is MVC, MVVM or MVP?

I know that angular projects have model, view and controller but many say angular.js is MVVM and others say it is MVP     
asked by 01.04.2017 / 06:03
1
answer

Page shows only the files in IIS 7 MVC 5 Application

I have an Mvc 5 application, for development I used IIS Express, everything works normally on it, but I'm having a problem uploading it to IIS 7. Even on my local machine, I'll later take it to Windows 2008. The problem is that running http:/...
asked by 03.06.2017 / 17:26
1
answer

Controller needs to be a class?

The controllers within an MVC need to be classes? Because of what I'm seeing here, their only function is to get the information that the view is asking for, to play the model and to solve the problem, and when it's solved, it takes the soluti...
asked by 19.12.2017 / 21:01
1
answer

How popular is a select with JQuery, JSON and AJAX? (MVC)

I followed some codes that I found here on how to populate a selectbox, but it is not working, is something missing? I'm getting a list of data with my Controller. JavaScript $(document).ready(function () { $(document).select...
asked by 03.10.2016 / 16:53
2
answers

How to use echo in a Laravel view?

I want my layout blade echo only if the $errors variable is set: @section('mensagens') <div class="container"> <div class="row"> <div class="col-md-2"></div> {{...
asked by 01.11.2016 / 14:17
3
answers

How to treat the logged-in user in an MVC system?

I'm creating a MVC framework a couple of weeks (developing it and using it at the same time), I got to the part of creating the authentication system. So I would like to create a way for me to configure which routes the user can access when...
asked by 14.11.2015 / 15:40
1
answer

ViewData ["ErrorMessage"] does not appear in view

Hello, I'm new to the C # language and would like to know why my ViewData ["ErrorMessage"] does not appear in my view. Controller: ViewData["ErrorMessage"] = "O e-mail digitado já se encontra registrado em nossa base de dados."; return Redir...
asked by 11.09.2015 / 19:29
2
answers

File Download via Ajax

In my Asp.Net MVC 4 project, I have a View with a button and the following script: <input type="button" value="Teste" id="baixarArquivo" /> <script> (function () { $("#baixarArquivo").off("click").on("click", function () {...
asked by 01.06.2016 / 14:44
1
answer

Validate form data with registration in the database

I am developing with ASP.NET MVC (I use ENTITIES / DAL / LOGIC - layers) and wanted to know better way to validate data form (website) form to be registered in the database? I have in the DAL layer (access to DB - SQL) this code: public void...
asked by 24.05.2016 / 11:50
1
answer

Google Maps Problem JavaScript API V3 with WebApp in MVC

I want to make a simple Map appear when the user clicks (Menu > Find), the problem is that the controller receives the data and sends me and does not return the Map. I'm using my default MVC project.    The code I made available in the...
asked by 15.03.2014 / 01:40