Questions tagged as 'asp.net-mvc'

1
answer

Error accessing array indexes inside a LINQ expression

I am doing a query to search all the meteorologies with a certain date, but when executing the following error occurs: An exception of type 'System.NotSupportedException' occurred in EntityFramework.SqlServer.dll but was not handled in user co...
asked by 13.11.2016 / 18:19
1
answer

ItemCode of the pagseguro button

I'm assigning the form of payment for the pagseguro, using the LightBox, I wanted to know what the ItemCode would be, I already surrounded by the pagseguro forum, but I did not find anything that would help me ... <!-- INICIO FORMULARIO BOT...
asked by 03.11.2016 / 14:12
1
answer

Error in updating Registration with EF

I'm having trouble updating a record, using ef. The key conflict error with relationship. Like I've been trying to add and not upgrade.    Additional information: A referential integrity constraint violation occurred: The property value (s) o...
asked by 05.11.2016 / 21:56
1
answer

Return the data to the View using Json.net or javascript- asp.net mvc

I need to return the data to fill a script, public JsonResult BuscaImagens() { List<Object> resultado = new List<object>(); resultado.Add(new { IdImagem = 1,...
asked by 23.10.2016 / 23:05
1
answer

How to call the printer on a page made in ASP.Net MVC?

I would like to call the printer, even if the page is being accessed by the mobile. <div class="container droppedHover"> <div class="row"> <div class="span6"> <button class="btn btn-lg btn-block bt...
asked by 01.01.2016 / 23:54
1
answer

Refresh PartialView [closed]

How do I update a partialview (asp. net) after I select some parent information, for example: I have a list of invoices and a partialview on the side to show the items in this note. When selecting one of the invoices my partialview should fet...
asked by 29.12.2015 / 13:14
2
answers

Partial View does not load Javascript - Asp.Net MVC

I'm moving to a Partial View through a two parameter controller, music and artist. Now in the PV I pass to the function fetchLetra () that is in the file letterIj.js these parameters for the return of the function, however, this is not happening...
asked by 18.11.2016 / 17:19
1
answer

How to reference an image tag img

I'm studying Asp.Net MVC and I'm having trouble setting the URL of the HTML: <!-- menu profile quick info --> <div class="profile"> <div class="profile_pic"> <img sr...
asked by 27.10.2016 / 13:04
1
answer

How to open the RazorPDF report in a separate tab

How do I export a PDF report with RazorPDF on a separate tab ? Home The report opens on the same system tab , ie it is only a tab and if I want to access the system I have to click the Browser Back button . I've followed this post here: Expo...
asked by 25.10.2016 / 13:12
1
answer

Pass a JS variable as Url.Action parameter

Hello, I would like to pass the JS variables parameter as a parameter, but it is not working, I would like to know the correct way to do this, <script> function check() { var teste1 = document.getElementById("lala");...
asked by 26.10.2016 / 17:50