Questions tagged as 'asp.net-mvc'

1
answer

Entity Framework 1-n

I do not even know if I'm feeling what I'm trying to do. If I try to add a Course to a Flag, fine. But when I try to add a list of Courses in a Flag, the following error occurs:    Additional information: An entity object can not be refere...
asked by 09.09.2014 / 20:57
1
answer

How to get value from a RadioButton field in JS?

I can not get value of my field RadioButton @Html.Label("Ativo") @Html.RadioButtonFor(v => v.Ativo,"S", new { name="ativo"}) @Html.Label("Inativo") @Html.RadioButtonFor(v => v.Ativo,"N", new { name="ativo"}) <script>...
asked by 20.02.2015 / 17:12
1
answer

Create a condition within a Linq

I need to make a comparison to set the value within my select new . I'll try to explain better. var tipo= from t in p select new { t.Key, t.Value,...
asked by 25.02.2015 / 19:47
1
answer

AJAX problem

I'm developing a site in ASP.NET MVC, I wanted it to change when my screen was refreshed, so my div .ESTRUTURA is the code: Javascript: function loadPage(page) { $.ajax({ type: 'GET', url: page, dataType:...
asked by 14.11.2014 / 13:12
2
answers

Does LINQ to Entities not recognize the 'Boolean Like?

I'm having this error when trying to do one with query using LINQ to SQL after making the suggested changes: {SELECT 'Extent1'.'idcliente', 'Extent1'.'nome', 'Extent1'.'pai', 'Extent1'.'mae', 'Extent1'.'informacao', 'Extent1'.'datanascime...
asked by 06.04.2015 / 16:59
1
answer

Return on failure to submit

I have a submit, which before I perform this function: $('#modelEditar').submit(function (e) { var cancelada = $("#Cancelada").val(); if (cancelada == "False") { e.preventDefault(); var id = document.getElementById("nfseid").value;...
asked by 04.01.2019 / 12:32
1
answer

Place pagination when generating PDF with iTextSharp

I'm using iTextSharp to generate PDF's in my application. Now a problem has arisen: I am printing listings and when there is more than one page I would like to print a footer with page numbers (eg "Page 1 of 4"). I found some examples but they...
asked by 02.04.2014 / 10:49
1
answer

How to retrieve content from a cookie

How do I retrieve content from a cookie, this cookie has the material ID that will be requested and the amount, which I need to retrieve to insert into the database. I've looked a lot on the internet and have not figured it out yet. It follows t...
asked by 30.09.2014 / 19:26
1
answer

Invent Registration Confirmation Procedure

The idea is to make the registration, send the user an email containing a link, where he can confirm the registration and only release the permission to log in. Just to have a little more security and prevent any email from being registered. How...
asked by 01.10.2014 / 04:41
1
answer

Grouping in foreach and view does not work

I created and set one variable to control the following. My LINQ returns me today 5 thousand lines. That variable, it's there to prevent it from repeating the same thing, like. Let's say that the linq returns 400 motif of ID = 1. Soon this varia...
asked by 16.09.2014 / 21:32