Questions tagged as 'asp.net-mvc'

0
answers

How to load PartialView via Javascript

I have an Asp.Net MVC project where there is a method that returns a PartialView : [HttpPost] public ActionResult MinhaAction(int param1, int param2) { // ... // Código // ... MigraDoc.DocumentObjectModel.Document doc = new...
asked by 21.03.2016 / 20:53
1
answer

Error writing data from some tables by application

I have an application in asp.net mvc which, among other functions, registers personal data of clients. We recently switched database access from one server to another, which has a copy of the database from the previous server. The problem is...
asked by 18.04.2016 / 16:00
2
answers

Prefix (stackify) + Web Api + MVC + EF 5 is not monitoring querys

Good afternoon. Personally, I am not able to use Prefix (stackify) + Web Api + MVC 4 + EF 5, because it is not able to monitor the querys performed and perform the feedback of the information. At the Api Web layer are the access to the applicatio...
asked by 18.04.2016 / 19:29
0
answers

Trust Level error when publishing MVC application

I need to publish an ASP.NET MVC application to a LocaWeb server. But when I publish, the server displays the following message: I'vetriedputtingtags<securityPolicy><trustLevelname="Medium" policyFile="web_mediumtrust.config" />...
asked by 05.04.2016 / 17:02
1
answer

Dropdown Asp.net MVC

I would like to do two dropdowns in a view, I do not want to do these dropdowns through the model in the view because each dropdown is of a different class. I made the dropdowns with angular.js only because I could not get the values when sub...
asked by 23.02.2016 / 18:42
1
answer

Jquery datatable appears with the result of previous searches while filtering

I own a search page made in ASP.NET MVC that has data loaded into a table using AJAX and jQuery Template, so you do not need to reload the page after searching. Here's the example below: function CarregaTabela() { idFiltro = $("#idFilt...
asked by 06.04.2016 / 16:25
1
answer

How to use AJAX in many layers?

I'm studying DDD I have an application with 4 layers being them Presentation Application Domain Infra In the presentation layer I search data via Ajax in the DB, but I have a question as to how to do it. Do I need to make ajax go th...
asked by 06.04.2016 / 20:41
1
answer

Controller get checkbox list from a view

I have a PartialView where I load a list of my object and put a checkbox for the user to mark which list item he wants to save, so I do not know how < in> controller can "know" which check is marked in view , remembering that I put a ch...
asked by 06.02.2016 / 14:22
1
answer

Query n: m using the Entity Framework

My problem with doing a "many-to-many" query. Receiving a View ID. In other words, I get an id from the selected cheater.  1 Catechesis has a list of parishes and 1 Parish has a list of Catecheses; A List of parishes has "1" truncheon. I get th...
asked by 20.01.2016 / 17:03
1
answer

Content loses formatting when viewing print asp.net mvc

I have a page to print, it was done with the bootstrap, I would like to keep the layout with the same formatting, I am doing it this way: Thank you <script> function cont(){ var conteudo = document.getElementById('print').i...
asked by 13.01.2016 / 17:19