Questions tagged as 'asp.net-mvc'

3
answers

How to leave empty textbox after an Ajax request via Post?

I have a registration application in .Net MVC and I'm using Ajax to send the contents of Forms to my Action that registers, when I save the value of the fields, in my view the values are still visible in the fields not leaving blank , as would t...
asked by 02.02.2015 / 15:03
3
answers

Application that does not need to load entire page

How can I create an application in MVC C# with Razor , where I have a Layout and then only update the central content and not the page as a whole. I have read some places to use AJAX other to use PartialView . But wh...
asked by 21.05.2014 / 21:17
2
answers

Modal display when submitting a form

How do I display a modal the moment I submit a registration form? The content of this modal is only a message. The following happens, in this form a file and information is sent. Since it usually takes a few seconds for the upload to take place,...
asked by 25.07.2015 / 21:32
1
answer

Using DataAnnotations in DDD Projects

We have a doubt that the analyst raised when using DataAnnotations in the ViewModel in projects that use DDD in the case has a Domain layer and in case it will not expand, this use would eliminate the domino layer because it is duplicating the f...
asked by 11.01.2018 / 12:46
2
answers

How to identify the MVC version?

How can I identify the MVC version I'm using in my project?     
asked by 09.05.2017 / 01:55
4
answers

Dynamically check which attributes of a Model have changed?

I'm developing an ASP.NET MVC 4 application and need to save the log of every change made to a Model object. Is there any native method or implementation already known that does this? Example: public class Pessoa { public int? Id { ge...
asked by 14.08.2014 / 20:14
3
answers

Send file and text via jquery asp.net mvc

Personal I was able to send the file through this code: var jqXHRData = null; $(function () { $('.progress').progress({ percent: 0 }); $("#divUpload").on('click', function () {...
asked by 28.06.2016 / 01:14
1
answer

How to implement AutoMapper 5.0.2

I set up a project a while back, as follows, A class named AutoMapperConfig as follows: public class AutoMapperConfig { public static void RegisterMappings() { Mapper.Initialize(x => { x.AddProfile<D...
asked by 28.07.2016 / 05:10
1
answer

Good practices with .NET MVC

I have an ASP.NET MVC application and would like to know what are the best practices that microsoft indicates in the organizational question of the solution, using the latest technologies like ASP.NET Identity. Assuming the following scenario...
asked by 21.11.2014 / 20:46
1
answer

Why @ Html.CheckBoxFor returns "true, false"

In the construction of my View, I have a field of type: public bool? RegistoGesOleos { get; set; } What I represent using Razor as: @Html.CheckBoxFor(model => model.RegistoGesOleos.Value) Now when I do submit of my Form, and...
asked by 27.10.2014 / 16:09