Questions tagged as 'asp.net-mvc'

1
answer

EF6 and NPGSQL: Foreign key violation error

Good afternoon! I'm new to ASP.NET and EF6. Developed earlier in PHP. I created a project (ASP.NET MVC) using EF6 and NPGSQL. I picked up a little while creating the relationships between two tables but it worked. The persona table will have...
asked by 05.10.2015 / 22:58
0
answers

Ajax error return null value [closed]

I have a function in ajax: $.ajax({ type: "POST", url: "@Url.Action("FiltraLevatamento", "Consulta")", data: JSON.stringify(jsn), contentType: "applic...
asked by 19.08.2015 / 19:09
0
answers

Bag nHibernate with key null

Hello, Does anyone know if it's possible to use nHibernate's Bag with Key Null? In a table some records have several related records, one for many, but not always, sometimes a regret will not have any. I made the mapping by a bag but th...
asked by 02.10.2015 / 17:27
2
answers

Problems filling fields in PDF in ASP.NET MVC

I'm having problems rendering some fields from my table in the PDF file. It was working fine, but I do not know what happened these fields are no longer rendering. On my My Courses screen, the student has a button that issues a Course...
asked by 02.07.2015 / 22:16
1
answer

How to change the list type in Asp.Net MVC

How do I change this type of listing Forthistypeoflistbelow My View @model IEnumerable<MeuProjeto.Models.AlunoCurso> @{ Layout = "/Views/Shared/_Layout.cshtml"; } <h2>Aprovar Aluno</h2> <table class="table tab...
asked by 23.06.2015 / 22:07
1
answer

How to edit a Boolean field in a list in Asp.Net MVC

Well, I'm developing an application that manages Courses , and I have the following problem. On my Administrator screen I need the Course Name , Student Name fields and the Approved field that is a booleano field. This screen is w...
asked by 22.06.2015 / 23:03
0
answers

Error Publishing Locaweb - ASP.NET with MySql

I posted a site on Locaweb: .Net + MySql + MVC 4 + EF6 For more details on the error: link Detail: Location runs normally. But when I published, the following occurs: 'Cannot perform CAS Asserts in Security Transparent methods'    ...
asked by 23.07.2015 / 08:20
0
answers

Ajax request returns SQL zero decimals

Dear friends, I have an Asp Net MVC5 application that makes use of ajax in both inclusions and selects. Writing the decimal values normally occurs on the SqlServer bank but the recovery returns me zeroed even though the crop is set correctly. Fo...
asked by 25.06.2015 / 06:53
0
answers

Controller does not pass route value to ASP.NET MVC View

Based on my previous question: Problem with page return according to profile C # When accessing the system with another user with the "ADMIN" Profile, the controller return does not fall into the view and does not call the page route that shou...
asked by 24.06.2015 / 20:22
3
answers

Problem with a Boolean field in ASP.NET MVC

My application that manages Courses has an area of Administrator where it approves a student in a course . This field that Approves a student is a booleano field, but I'm having trouble with this field booleano when ta...
asked by 25.06.2015 / 07:18