Questions tagged as 'asp.net-mvc'

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
0
answers

implementation of a dropDownList

I'm doing dropDownList in cascade but at the time of deploying it only the first one shows the information and when selecting some element it is supposed the second one would update the list but it does not compile it I have reviewed it for hour...
asked by 26.05.2018 / 00:57
0
answers

Send data from a beginform to controller of 3 different dropdown

Hello Developers I have a doubt of knowledge turns out that it makes three dropdown that they requested to me and the thing is that I have to do that it sends the information by means of a button to the controller in MVC 2 here the aspx code...
asked by 28.05.2018 / 22:46
1
answer

Are there more ways to call a partial view from the view?

Is there a way to call from the view to Partial View as a Url.Action or otherwise? Since I have a method in my controller that renders a partial view, but I need to call that method from my view, for example @Html.Partial("Contr...
asked by 28.05.2018 / 22:05
1
answer

Keep a user logged into the views

I am trying to realize that when I register a user, his username appears in the header of the page. All this in ASP.NET. I have done the validation and I verify that the user really exists, but now I want him to show me his name in the header....
asked by 23.05.2018 / 11:43
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
2
answers

Publish MVC project with visual studio 2017

Good day dear, I have a web application which I want to publish, I was looking at pages and tutorials where they publish them with the file system option but when I do it I get a warning that this option does not support the database, the appl...
asked by 16.05.2018 / 18:27
1
answer

Error executing ASP.NET application C #

Hello, I am creating a project in ASP.NET, when executing it in the browser it generates this error: "Unable to load the file or assembly 'Newtonsoft.Json' or one of its dependencies"     
asked by 10.05.2018 / 18:52