Questions tagged as 'mvc'

2
answers

Is there anything in MVC that is equivalent to asp: repeater of Web Forms?

I am putting together a form where some fields may or may not be repeated, for example:    Course 1: Course [input text] Institution [input text] Completion year [input text]    Course 2: Course [inpu...
asked by 14.09.2017 / 20:40
1
answer

post call does not work, returns error 405

I have the following javascript <script type="text/javascript"> function calculaReducao(){ var nd1 = document.getElementById("nrDentes1").value; var nd2 = document.getElementById("nrDentes2").v...
asked by 20.11.2017 / 19:43
1
answer

Returning to the main page when accessing an invalid url

How do I redirect the user to the main page of the app if it tries to access an invalid url . For example, www.teste/teste.html , in case the page does not exist then system directs the user to www.teste/index.html , in case I am us...
asked by 12.09.2017 / 18:01
1
answer

How to get the Value result of Div divValor. result [2] in the mvc controller?

$(document).ready(function(){ $("#btnSend").click(function(){ $.ajax({ url:'@Url.Action("VerificaCep","ConsultaCep")', type: "GET", contentType:"application/json",...
asked by 09.09.2017 / 23:11
1
answer

Run Modal Open Script in Ajax. W#

Problem: I'm in the view index, it has a button that opens the Create view on a modal screen, on that modal screen I want to execute a javascript code, but for some reason it is not running. I'm opening a modal view with the following code:...
asked by 23.08.2017 / 20:04
2
answers

Error making relationship with laravel

   Call to undefined method Illuminate \ Database \ Query \ Builder :: BeltTo () My Models <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Imovel extends Model { //definindo nome da tabela na migra...
asked by 02.08.2017 / 20:06
0
answers

Doubt about templates using MVC

Following the good practices of the MVC model, would it be correct for a template to evoke another template? Or would that be a unique feature of a map or controller?     
asked by 14.07.2017 / 00:04
1
answer

header command in PHP

I'm trying to create a simple MVC system in which I have the following folder structure: Arquivos de Código-Fonte - Pasta Servlet - Pasta UserServlet.class.php Controller - Pasta UserController.class.php Model - Pasta DAO...
asked by 14.07.2017 / 00:11
0
answers

ValidateAntiForgeryToken + Back button

Good morning. I have a login form on a webpage using MVC 5, I am using the [ValidateAntiForgeryToken] function to validate forms for security reasons. The page logs in correctly, however when clicking the Back button of the browser and ent...
asked by 05.07.2017 / 14:38
0
answers

I can not make a reference to a project

Hello, I have a solution in MVC divided into 4 projects: Model, Persistence, Contoller and View Persistence has a reference to Model Controller has 2 references for Model and Persistence I'm trying to put a reference to View for Control...
asked by 01.07.2017 / 21:34