Questions tagged as 'mvc'

2
answers

Problems with autoload in php

Colleagues I have the following question, it turns out that I am working with mvc without a framework, and I have problems with autoload gives me the following error    Fatal error: Uncaught Error: Class 'Model \ ProjectModel' not found in...
asked by 19.10.2017 / 20:09
1
answer

Fatal error: Call to a member function query () on null in

I am trying to make a Login using the Vista Controller model (MVC), the database is already created, the problem is when validating a user, whatever the user sends this message. <?php class conexion{ private $conexion; private $serve...
asked by 15.05.2017 / 01:31
1
answer

Validations in MVC 4

How can I add validation to an @Html.Textbox in a View Details. This is the code. @using (Html.BeginForm()) { @Html.ValidationSummary(true); @Html.TextBox("Referencia"); <input value="Referencia" type="submit"> <fields...
asked by 11.04.2017 / 04:31
1
answer

Send coordinates in javascript and ASP.NET MVC

I have a question, I have a function in javascript, but apparently it does not receive the coordinates correctly, when you put the mouse over the link that the function calls, you can see that if the coordinates go. I enclose the code of the fun...
asked by 26.03.2017 / 20:07
2
answers

@ Html.Action asp.net MVC

Good afternoon, I have trouble going to a view, calling from another view. I do it in the following way: I'm in the OlvidoPassword view, and in the view there's a ViewBag.User, what I do is ask if the ViewBag is null, if it is, I send i...
asked by 26.03.2017 / 22:06
1
answer

Spring MVC that makes the mvc tag: annotation-driven /

In a Spring MVC web application in the XML configuration file the examples that I have seen use the tag I would like to know what the same is for me.     
asked by 25.03.2017 / 15:32
3
answers

Close session in mvc c #?

I have the following code for a log Response.Cookies["correoRepresentante"].Value = CorreoL; Response.Cookies["correoRepresentante"].Expires = DateTime.Now.AddYears(1); Response.Cookies["passRepresentante"].Value = contrasena; Response.Cookies...
asked by 30.11.2016 / 01:49
1
answer

problem with my javascript function in MVC3 view

hello community stack I need help with my javascript function does not do the multiplication of text fields. //funcion para multiplicar dos campos de texto <script type="text/javascript"> function multiplicar() { m1...
asked by 04.11.2016 / 20:19
2
answers

Multiple mvc projects in the same solution c #

I wanted to see what they recommend. I have a large project with many clients and different requirements for certain things. My idea is to have a generic MVC project with the controllers, views and scripts that are repeated in all the clients an...
asked by 04.11.2016 / 12:40
2
answers

Problem with [Authorize] on asp.net mvc 4

please your collaboration with the following: I have a controller with a couple of actions: [Authorize] public ActionResult conAut() { return View(); } public ActionResult sinAut() { return View();...
asked by 22.11.2016 / 21:40