Questions tagged as 'asp.net-mvc'

2
answers

Get next record in a clustered foreach

How could I be selecting the next record within a grouped foreach before it ends, without advancing in that loop ? The point where I think I might be getting this information is where GET THE NEXT ID DESSE FOREACH is written in the...
asked by 09.08.2018 / 16:24
3
answers

How to do Update in Linq?

My project has the Delete method, but it definitely deletes the record from the table in the database. I would like to instead of delete, change the column record, I have a field called "Status", this field is an Enum with two options "Enable...
asked by 09.11.2018 / 16:34
2
answers

Show GroupBy List using Lambda, in the view. ASP.NET MVC

Well, I have a little big problem here. I make the query in the database using Lambda , and I use the GroupBy tag, the query is bringing objects correctly, the problem is that I can not show in the view. gives an error when I use...
asked by 14.08.2018 / 16:58
1
answer

Ajax return files from a directory (Asp.net MVC)

I would like to list the files in the form of a link (to click on download). List the directory files below the upload input Ajax:functionCarregaArquivos(Id){$.ajax({url:"/Qualidade/RiscoAcao/ListarArquivos", data: { IdAcao: Id },...
asked by 31.07.2018 / 13:58
1
answer

Download File in asp net mvc

I have files that have been uploaded to the wwwroot / files / folder of my project. I want to download these files but when I click the button nothing happens. public ActionResult DownloadFile(string arquivo) { if (arquivo == null...
asked by 10.10.2018 / 16:00
1
answer

How to implement a Person repository function for the Generic repository - Asp.net MVC and EF Core

I have a function to return the highest value of an ID field from a table using EF Core. But I'd like to implement it in my generic repository to be dynamic and to be used by all classes. How do I do this? //Funcionar no Repositório de Pessoa...
asked by 18.08.2018 / 13:23
1
answer

prepare Iframe or embed responsive for mobile

Personal I have a C # MVC5 project and my scenario is as follows: I have to open in a friendly url a large series of pages (with media content) made by third parties. One at a time clear (according to the parameter received) I then created this...
asked by 27.08.2018 / 15:14
1
answer

String in Entity Expression C #

I need to make a dynamic query similar to the example below String tabela = "NomeTabela"; Var x = db.("NomeTabela").ToList(); Something like that where the table name will change as needed.     
asked by 08.09.2018 / 13:37
3
answers

ASP.NET MVC Project Publishing

Good morning, gentlemen, I work with systems development, but until then I never had to make an online publication of an application of mine, since I always worked with ready projects, what is the best way and where to publish my project where I...
asked by 25.06.2018 / 15:21
1
answer

Width does not increase more than 283px BootStrap

Hello, I have a form where I have a TextArea . However%% is only Width . When it decreases, it decreases correctly, now when it increases, it does not work. I set the size as 283px , however, when I inspect the code by Googl...
asked by 13.01.2015 / 11:35