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

1
answer

Request performance using Html.BeginForm versus jQuery AJAX

Is there any gain in performance when using jQuery to perform ajax requests in relation to the post using Html.BeginForm? @using (Html.BeginForm("Create", "Teste") { @Html.AntiForgeryToken() @Html.ValidationSummary(true, ""...
asked by 01.12.2016 / 07:25
1
answer

ASP NET MVC 5 Dapper with SQL Server?

I'm creating an application with ASP.NET MVC5 , DAPPER , C# E SQL SERVER . The problem is that in the data listing, you are bringing the empty fields, except the ID field, which comes to zero (0). If anyone kno...
asked by 06.11.2016 / 18:50
1
answer

How much to use @ Html.ActionLink or Javascript

I'm having trouble understanding when to use @Html.ActionLink or javascript:document.getElementById('Comercial').submit() For example: <a><i class="fa fa-home"></i> Home <span class="fa fa-chevron-down">...
asked by 09.11.2016 / 16:50
1
answer

Display balloon popup on a Label

I would like to display a small message to the user, style those when passing the mouse, if I were not mistaken it would be the attribute    alt="my message" However I'm using asp.net-mvc-5 and I'm finding it difficult to do. My message,...
asked by 11.11.2016 / 20:25
1
answer

Debugar lazy loading

Sirs, I would like to view all the queries that are generated when I use lazy loading. When debugging only the main view. In the Training controller it looks like this: public class TreinamentosController : Controller { private DbCon...
asked by 16.06.2016 / 16:38
1
answer

Hide URL parameter in MVC 5

My question is: How to hide URL parameter using path or mask? PessoaFisica/Edit/1 for PessoaFisica/Edit routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new {...
asked by 30.06.2016 / 14:52
1
answer

English Validation Messages in IIS - Asp.Net MVC

I published my application in IIS, however, validation messages are appearing in English. I have already installed the Asp.Net MVC package in Portuguese in the link application: link and set up globalization: <configuration> <...
asked by 11.02.2016 / 23:44
1
answer

ASP.NET form validation mvc!

I have a form that validates the fields when trying to send information, but I have a "novapagina" option where I would not like to validate the fields, would that be possible? In views <div class="container droppedHover"> <br/&...
asked by 28.12.2015 / 05:00
1
answer

How to avoid duplication of controllers / responsibility in modern applications?

Today, communication between applications, mobile and / or other devices is growing. .NET provides Asp.net MVC and Asp.net WebAPI (to date, stable version). Commonly Asp.net MVC returns Views , although WebApi...
asked by 28.10.2015 / 20:45
1
answer

how to do a select count using Linq C #

I need to convert this snippet of SQL code to Linq C #. I've been able to convert almost all of the code. SELECT COUNT(Q.ID_QUALIFICACAO) AS CONHEC_ESPECIFICO FROM QUALIFICACAO Q INNER JOIN...
asked by 02.11.2015 / 20:39