Questions tagged as 'asp.net-mvc-5'

0
answers

CheckBoxFor and ListBoxFor do not behave in the same way when making a post with them?

I have a form in which I occupy ListBoxFor and CheckBoxFor for them I have their respective classes which are the following. public class SelectViewModel { public List<SelectListItem> MiPropiedad { get; set; } publi...
asked by 05.06.2018 / 22:41
0
answers

I can not get the Image of my directory in my solution asp.net mvc 5

good day ... I need a help .. I can not show an image that I have in my database .. even add it to the directory .. creates the image but does not show it .. in the directory the solution does not appear .. I only see it when I access from the f...
asked by 03.06.2018 / 21:01
1
answer

How do I make an array of objects in ASP.NET C #

I've already tried everything. Someone who could help me That's how I send my object to the controller $.ajax({ type: "GET", url: "@Url.Action("editarTarjetaCapacitacion", "TarjetaCapacitacion")", scriptCha...
asked by 21.06.2018 / 20:49
1
answer

how to send angularjs objects to a C # controller

good morning I am new with angular, I have problems to send an object of angularjs to controller C #, I could send a string but at the time of wanting to send an object send me error someone some suggestion the code is the following controlle...
asked by 29.05.2018 / 17:06
0
answers

Send model to PartialView with $ .load

I'm here because I have a small problem with handling a Model between View and% PartialView The question is the following, I have a view (that fulfills the form), so as not to overload it so aggressively, add a PartialView...
asked by 24.05.2018 / 14:24
0
answers

Error adding WebForms in MVC ASP.NET project

I find the following error when opening a view that I created in my MVC 5 ASP.NET project, the view file is .aspx: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Asistencias.aspx.cs" Inherits="Visitantes.Views.Informes.Asistencia...
asked by 20.06.2018 / 15:18
0
answers

MVC login with roles

Hello, I am developing a project in MVC and I would like to know how I can do so in the login depending on the role of the user send me to a certain page. At the moment the login is already but I do not know how to make it differentiated by r...
asked by 20.05.2018 / 04:52
0
answers

MVC always returns null when I save an image

Hi, I am developing an application in MVC and I want to save an image in a table called Inventory in my database but it always tells me that it can not return null Here is my code My model public partial class Inventario { pu...
asked by 21.05.2018 / 01:08
0
answers

System.ArgumentException: 'Unsupported keyword:' metadata '.'

How do I solve the error?    System.ArgumentException: 'Unsupported keyword:' metadata '.' which tells me the line conec = new SqlConnection(conexion); This is the complete code: using System; using System.Collections.Generic;...
asked by 17.05.2018 / 23:52
1
answer

Error in AjaxOption () ASP.NET MVC 5

I'm a novice and this is practicing the use of AJAX in ASP.NET MVC. I have a partial view in which I want to have a form with Ajax.BeginForm () in which I can enter a number and through Ajax, when I press it, I multiply x2 and the result show...
asked by 22.05.2018 / 20:50