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

1
answer

An object with the same key already exists in the ObjectStateManager. The ObjectStateManager can not track multiple objects with the same key

I have a problem with a bit annoying, I'm trying to do an update using the Entity Framework , but when it arrives in SaveChanges (); the following error appears. An object with the same key already exists in the ObjectStateManager. The Obje...
asked by 13.03.2015 / 20:32
2
answers

No parameterless constructor was defined for this object

I'm building an ASP.NET MVC5 application using DDD and I've separated my IoC layer from my web application. In my controllers I have parameterized constructors to receive an instance of my class of services. I am using Ninject, in this I created...
asked by 22.01.2015 / 19:49
1
answer

Publish ASP.Net site

I made my first test site in ASP.Net and when I'm going to publish it to my normal ftp (I'm using visual studio 2013) I open the domain link gets all these folders and such ... How do I publish it? What I have to do?     
asked by 22.07.2015 / 02:21
1
answer

How to list items per logged-in user in ASP.NET MVC

I have an application that manages Courses and I have the following problem, student makes your enrollment in courses >, but when the student accesses the page where they list the courses they are enrolled in, this list is also listin...
asked by 24.06.2015 / 07:28
1
answer

Preview data before saving in bank

I'm doing a news site in ASP.NET MVC 5 and there was a need to see Preview of the news before saving it to the bank. With a action name Preview I can send the data to it and send it to a View with the page design w...
asked by 12.05.2014 / 21:17
1
answer

Feed hidden field by click on the column of a table

This is my jQuery that mounts HTML in my cshtml. $(data.resultado).each(function () { str += '<tbody>'; str += '<tr>'; str += '<td>'; str +=...
asked by 08.05.2014 / 20:32
1
answer

Doubt in View and Controller construction with entity dependent on cardinality N

I'm on a project that I have a 1: N relationship. Explaining better: Project is for a school where students have their occurrences. So I would be a student for several occurrences: Models \ Student.cs public class Aluno { public long Id...
asked by 14.05.2014 / 19:17
1
answer

Learning to use AJAX in ASP.Net MVC 4

In my project, I have two different models , thus generating their controllers and their views. The only thing that happens is that I do not know how to use AJAX and I needed an urgent help from you. What happens is that I wanted to render th...
asked by 13.05.2014 / 19:31
2
answers

Function to clean html

How to do a function that wipes HTML? I have a field that comes from a WS and I need, before displaying on the page, to clean the HTML. They sent me this: String result = Regex.Replace(htmlDocument, @"<[^>]*>", String.Empty); I...
asked by 27.03.2014 / 20:07
1
answer

Radiobutton problems in table (TR for each one) - Allows everyone to be clicked

I have this table and these radios buttons. It turns out that I select more than one radiobutton, it does not obey the question, one selected the other not. <table> <tr> <td>@Html.RadioButt...
asked by 16.05.2014 / 15:35