Questions tagged as 'asp.net-mvc'

1
answer

Create DropdownList MVC double

I'm working on an MVC ASP.Net project and I need to know how I can perform a view with 2 dropdownlist, in which one depends on another, for example. State and Peoples. Depending on the state you choose then the villages vary, in real time wit...
asked by 10.07.2017 / 14:46
1
answer

Visualization of a table in asp.net mvc html

Good, I have an index view generated automatically by the controller in C #, I need to show some photos in a table and every 4 columns a row is generated automatically, but I can not do it, it just shows me the run photos creating columns and no...
asked by 30.06.2017 / 17:23
1
answer

Path not found in my @ Html.Action

I have an action child, which I use to invoke a view in a layout, but when using the @ HTML.Action , it tells me that the controller that happened to it has not been found. <li class="dropdown"> <a href="#"...
asked by 26.06.2017 / 20:04
1
answer

How to show the details of a record in a view, that are different from NULL?

I am working on a razor view on MVC5, and I can not make it appear that I do not see the details that I leave null when I register. Example in the image I have several questions but others were left empty because they were not necessary as I...
asked by 28.06.2017 / 20:00
2
answers

Problem redirecting view from another controller

This is my sending function, I have taken from examples that I have seen in this forum function enviarDatos() { var params = { valor1 : $("#usuario").val(), valor2 : $("#clave").val() }; $.aja...
asked by 10.05.2017 / 18:25
1
answer

Does not redirect to the expected view with jQuery Validation Plugin

I am using jQuery Validation Plugin to validate my login information, the problem is when in the url there is a subdomain, double sent the form or something like that. The point is that instead of loading the view that I hope does no...
asked by 24.04.2017 / 20:12
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
2
answers

24-hour Data-Time format

I need to change the data-time format to 24 hours. I'm working with C # MVC5 This is my Model [Display(Name = "Fecha y Hora de Inicio")] [DataType(DataType.Date)] [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy...
asked by 02.05.2017 / 20:23
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
2
answers

How to get the values of the view to the MVC controller - RAZOR

I currently have this code in a view, and I want to get all the values to pass them to the controller and create them in the database I have 2 models Subjects: namespace CalculaNotas.Models public class Materias { public int materiasId...
asked by 17.03.2017 / 04:43