Questions tagged as 'asp.net-mvc'

1
answer

Render HTML saved in a SQLServer database field

I have HTML saved as Varchar in a SQL Server database. I'm trying to insert this HTML in a view but in doing so, it is passed as text and not as HTML (BUT, HTML adds double quotes at the beginning and end, which does not allow rendering. Th...
asked by 14.02.2018 / 18:08
1
answer

Problems with Ajax.BeginForm Razor MVC4

Good morning. I had previously posted a problem with a form ajax , but I'm still I can conclude this module. The problem is that when I open this Formulario Ajax (which opens in a dialog and the div of it is out of any othe...
asked by 03.02.2016 / 15:10
2
answers

ASP.NET MVC - Models

I'm working with the MVC design pattern, I have a three-layer architecture, is it necessary to put the models in the Models folder ?, can the models go in another project?     
asked by 18.01.2017 / 04:49
1
answer

How to get the value of an Html.DropDownList to pass its value as a parameter to a partial view in MVC asp.net

I have the following dropdownlist, which shows the values 5,10 and 15: <% Dim listItems = New List(Of ListItem) From { _ New ListItem() With { _ .Text = "5", _ .Value = 5 _ }, _ New ListIt...
asked by 15.05.2016 / 02:47
1
answer

Help - I can not send object of the view towards the controller arrive null attributes

I have a problem I try to send an object in javascript to my controller, the problem is that the controller receives as a list attribute and this list contains another list as an attribute. I think the problem is that I do not send or do n...
asked by 25.10.2018 / 18:58
1
answer

I can not define "client" signalR

I am starting to work with signalR but I have an error (I have seen several answers on the web but none has helped me), I have the following files peopleHUB.cs using System; using System.Collections.Generic; using System.Linq; using Syste...
asked by 27.09.2018 / 20:49
2
answers

Linq adds a nonexistent column to the SQL query

I'm having a problem with LINQ, using EntityFramework 6 First, to enter the context, I leave the Problem Model .. [Table("Datos_Garantizados")] public partial class Datos_Garantizados { [Key] public long Version { get; set; } public decima...
asked by 28.03.2018 / 16:18
1
answer

Problem when downloading .xlsx in Chrome Error: network error

When I want to export a list of type IEnumerable from Chrome it gives me an error that says "Error: network error". I try it in Firefox and it's ok, download the file. Someone will know how to solve this, or have an alternative (another method t...
asked by 25.01.2018 / 23:09
1
answer

404 errors in Asp.net MVC application

I have a page, that although it works correctly, when entering the crome debugger (ctrl + shift + P) it marks me errors of resource not found 404 However, the folders and resources are available and well addressed. What can this erro...
asked by 25.03.2017 / 01:02
3
answers

Problems with DropDownList ASP MVC

Greetings, I have problems with a DropDownList in ASP.net MVC, the website filters the Teachers but at the time of saving gives the following error: This is the error that the System shows:    Exception Details: System.NullReferenceExcepti...
asked by 03.03.2017 / 15:41