Questions tagged as 'asp.net-mvc'

1
answer

The member with identity 'Phase_Target_Project' does not exist in the metadata collection

I'm having a very strange error ... I do not make the least of it. This is my class: public class FaseProjeto { public int IdProjeto { get; set; } public int IdFase { get; set; } public virtual Projeto Projeto { get; set; }...
asked by 09.06.2015 / 16:30
1
answer

Button only work if passed the Id in the URL in ASP.NET MVC

I have a problem in my application manager of Courses in ASP.NET MVC. The scenario is as follows: I have a screen where the "Student" enrolls in a course. By clicking the "enroll" button, it is associated with a course and the number of vacan...
asked by 04.06.2015 / 22:52
0
answers

MVC + EF Application with N-Layers

I'm working on an MVC project with EF 6, and I'm having a rather curious problem, in some ViewModel, the object that comes from my DbContext does not seem to persist and I get the generic message System.NullReferenceException. The curious thi...
asked by 23.06.2015 / 02:07
0
answers

Updating the table records dynamically

I have the following scenario: I have a View (typed eg: produto {codigo, descricao, quantidade, qtdeRecebida} ) where a table is loaded. In this View, besides the table, I still have a textbox and a button. When the user informs the produc...
asked by 14.05.2015 / 19:35
2
answers

How do I add Role to User Registration?

I have an Asp.Net MVC project that uses Individual User Account and I would like to add a category ( Role ) to it at the time of registration. What I have at the moment is: View : @model Projeto.Models.RegisterViewModel @{ ViewBa...
asked by 08.06.2015 / 16:15
0
answers

Get FormCollection in Page Navigation

In an ASP.NET C # MVC4 system I have some screens where I show some data. These screens have Filters and navigation (maximum limit of 10 data per page). I would like to know how I can save the FormCollection in some way so that it passes the pag...
asked by 16.04.2015 / 01:14
1
answer

Mapping OneToMany Nhibernate

Hello, In an application has a class that I need to do a OneToMany mapping, this parent class will be responsible for performing the persistence of the child class. My question is, I did the mapping of the Bag in the parent class as below:...
asked by 04.09.2015 / 21:58
0
answers

Exams by type AngularJs

Well, I have a problem with my code. I was supposed to get all the exams of a certain type. <div class="box-body" id="teste" ng-app="app" ng-init="chargeData()" ng-controller="FormCtrl"> <ul class="nav nav-tabs" role="tablist">...
asked by 20.02.2015 / 10:28
0
answers

Javascript and components stop responding

I'm having some problems with session times (I assume that's the problem) in my application. My client says that sometimes the application does not work, namely Javascript's and components that are part of the application (DevExpress). When I...
asked by 13.02.2015 / 16:43
0
answers

Data from a Linq to SQL query for the view?

I need to send the SQL query data to the View, I noticed that all the data comes, how could I send only the SQL query information? // // GET: /ConsultaCliente/ public ActionResult Index() { //não retornar os registros...
asked by 06.04.2015 / 21:03