Questions tagged as 'asp.net-mvc-5'

1
answer

Feed fields in view by controller

I have used a way to load fields in the view as follows: I make a method returning a JSon in the controller, there I create a JQuery function that takes that return and nurtures the fields of the view, in the success of ajax. Well, that was an a...
asked by 13.06.2014 / 15:14
1
answer

"JsonResult" does not contain a constructor that accepts 0 arguments

I'm trying to return a JsonResult for my View, but it's returning the following error.    "JsonResult" does not contain a constructor that accepts 0 arguments Would you help me out? [HttpGet] public async Task<IActionResult> GetAl...
asked by 16.10.2018 / 19:07
1
answer

MVC PivotTable

I need to return the result of the procedure, I put a fixed value just to perform my tests but it will have a typed input, in datepick. But I can not create the list for the columns. Here is the snippet of code: public string dtaTotal(strin...
asked by 19.12.2018 / 14:23
1
answer

JWT and Identity MVC 5

Save Galley, I'm looking for how to use both (JWT with Identity MVC 5), but I do not find anything about it, I only found it for Identity .Net Core 2, this is not good for me because the application was already created in MVC 5. Someone Do yo...
asked by 26.09.2018 / 21:02
1
answer

Output ASP .NET MVC Cache

I am studying about the output cache in Asp .NET MVC to improve the performance of my application. From what I've seen it can be stored in various places like: · Any · Client · Downstream · Server · None · ServerAndClient Doubt If I ca...
asked by 13.11.2018 / 10:22
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
1
answer

How to set upload a photo as required

I'm developing a page, so job seekers can enter and fill in their personal information, one of these information is the photo, which has to be mandatory. Then I created the following model: { . . [Display(Name = "SolidWorks")]...
asked by 20.08.2018 / 18:14
1
answer

How to migrate a system made in C # using ASP.NET?

Good morning! I am new to the programming environment and am developing a system in C # using Windows Forms. In the future I intend to do this same system in ASP.NET. I would like to know if there is any way to make the most of the code already...
asked by 28.06.2018 / 16:35
1
answer

Button making submit to action instead of opening only Modal

I am putting together a Modal to add a category and a list of products in a modal. When I click the button to add a new product my category Create action is called when it should only open the modal. I do not understand what is wrong for t...
asked by 20.05.2018 / 01:37
1
answer

Error initializing database on server in Asp Net Mvc!

I have a finished application developed in C # using Asp Net MVC. On my local server the application connects to the database that is on the server of the company that works, so when placing the application to run in the Host Network provider is...
asked by 16.05.2018 / 20:44