Questions tagged as 'asp.net-mvc'

2
answers

Validation in operations Edit and delete by ID in the url

I tested taking the id and passing via url, normally performs the operation, as long as it exists, otherwise the error as expected. EX: link link How can I address this issue? See a form of validation, so if the id parameter is p...
asked by 01.10.2017 / 12:32
2
answers

Exporting CSV data

Personal someone would have some example of how to create a web data export in .CSV? I already have one in my system in .XLS, however I need to modify it, can anyone help? Controller private void ExportacaoDados(DataSet data, string fileN...
asked by 11.10.2017 / 16:08
0
answers

Why Elmah.Mvc requests authentication when requiresAuthentication = false

I would like to know why Elmah.Mvc when we enter the page ~/Elmah does it always request my application login?   The option in webconfig requiresAuthentication is as false and still requests.     Has anyone gone throu...
asked by 06.10.2017 / 20:01
0
answers

How to return values from an undeclared View in Model to Contoller by post method

My controller is declared according to the code below: public ActionResult Create([Bind(Include = "a,b,c,d,e")] Proposal proposal, int prjId, int[] array) { if (ModelState.IsValid) { proposal.f = prjId; db.Proposals....
asked by 27.09.2017 / 19:45
0
answers

How to update only one property of an object using OutputCache in ActionResult

Hello, everyone. I have a problem that I do not even know if there is a solution like this. I have an ActionResult that returns the contents of a chart in Jquery. The result of this graphic will always need to be cached so page does not...
asked by 27.09.2017 / 19:11
1
answer

When executing POST passing object via URI of a WebAPI, the object arrives as null in the method

I have a few days of headaches with this problem I have an MVC5 fronted application and it sends an object to another WebAPI application in a Save () method. See the code of my Frontend application that sends the object to the WebAPI public...
asked by 16.09.2017 / 19:52
0
answers

How to edit data from a table in a modal bootstrap?

How to load a modal bootstrap through a link within a < td > tag and send together the Code , Name and Date > example: jquery: $(document).on("click", "#lnkEditar", function () { $('#cadModal').modal('show'); });...
asked by 27.09.2017 / 02:10
0
answers

I can not map EF

I have this entity in my Domain: public class CalibrationToolActivePart { [Key] public int CalibrationToolActivePartID { get; set; } public int CalibrationToolID { get; set; } publi...
asked by 26.09.2017 / 15:33
1
answer

How do I create a DropDownList for MVC5 ASP.NET

Hello, I'm having difficulty making a Dropdownlist, I have 3 classes an Entities to have relationship with the bank, a Genre that is associated with the Work class. [Table("Generos")] public class Genero { [Key] public int GeneroId { g...
asked by 21.09.2017 / 04:03
2
answers

Event loading when performing AJAX queries with ASP.NET MVC

I would like to know how best to put a Waiting any to identify that the data of a search is being processed, in the case I have a table and I can perform a search filter, when the request is sent I would like to put a warning to the user that th...
asked by 01.09.2017 / 19:38