Questions tagged as 'asp.net-mvc'

2
answers

Open another page in JQuery modal

I have a problem that I can not resolve in any way. Well, I have a project in Asp.NET MVC as follows: Home Model public class Objeto { public Objeto() { } public Objeto(string nome, double valor, double perc...
asked by 13.04.2015 / 17:03
1
answer

Use Session as Parameter of a query

Hello, I have a method to log in to the system, right after I need the user to select an option in a dropdown and save that value in a session. Now I need to put the value stored in the session, inside a LINQ query. I'll post the codes, which wi...
asked by 11.01.2015 / 23:29
1
answer

How to get values to populate a dropdown dynamically

I'm developing in .NET MVC and in my application, I have a form that registers people via Ajax. This element should appear in a dropdown list, it should appear dynamically without refreshing the page, does anyone know of any way to do this?...
asked by 10.03.2015 / 17:18
1
answer

How to save only two information

I have a new business rule in my project. I need a details view, so I have a small form to save only two information: Delay and No Uniform. I already have the table made. But I needed this form to save only those two information, not the e...
asked by 31.12.2014 / 00:39
1
answer

Problem retrieving References from a query in Nhibernate HasMany

I'm using Nhibernate with WebAPI I have 2 entities Profile and personLogin Personalogin may have N Profile and Profile 1 Person Login. However, when I go to the webservice PessoaLogin, the Profile reference only works if it is NULL if I add a Pr...
asked by 18.12.2014 / 18:21
1
answer

Error saving data from a session in the database

I'm developing a sales system. Follow the link: Save Request - ASP.NET MVC But when I finish the purchase and save the data in the database, I get the following error:    "An entity object can not be referenced by multiple instances of I...
asked by 03.12.2014 / 21:51
1
answer

Convert Dictionary to an Array

I have a Controller that generates a list of Graphics as can be seen below: [EXEMPLO DE DADOS] Pergunta: Estrutura Dados: [1, 3] [2, 5] [3, 1] [4, 0] [5, 10] Pergunta: Organização Dados: [1, 2] [2, 0]...
asked by 13.02.2015 / 11:39
1
answer

Fill ValidationSummary with Data Annotations Errors in Submit by AJAX

Define several DataAnnotations for the template which the instance instance. When the form submission is not for AJAX, everything works as it should, that is, ValidationSummary is populated with ErrorMessage defined in my classes....
asked by 20.07.2015 / 03:59
1
answer

How to map a table without PK with entityframework?

Everyone! in my project, I'm having trouble mapping a primary keyless (PK) table, the application is breaking, when I implement the table in the MAP of my project. public class Configuracoes { public int MaximoFilas { get; set; }...
asked by 12.03.2015 / 18:36
1
answer

Error hiding menu based on user permissions

Hello, I had a method to control access to menus, based on permissions. But nothing has stopped working and I get the error: "Can not bind at runtime to a null reference" I do not know what's been changed for this to happen. Here is the co...
asked by 12.01.2015 / 13:42