Questions tagged as 'asp.net-mvc'

1
answer

Value and ID in the DropDown Cascade

Reference that can help you understand the code. DropDown Waterfall This part here I pass the values that will be added in the second DropDown var classesList = this.GetClasses(Convert.ToInt32(CanalMassivo)); var classesData = clas...
asked by 30.11.2015 / 12:24
1
answer

Format mask for TimeStamp attribute

I need to display the value of the TIMEOUT attribute only HH: mm (hour and minutes). By including the masks below an error occurs: The input string was not in an incorrect format. I've tried both ways: @dia.HORAINICIO.ToString(@"hh:mm...
asked by 02.11.2015 / 15:19
2
answers

No Entity Framework provider found for ADO.NET provider [closed]

I am dividing my application in layers, I installed EF in the application layers and repository, in my view everything is correct, but I am having the following error:    No Entity Framework provider found for the ADO.NET provider with invari...
asked by 22.09.2015 / 18:53
1
answer

jQuery calling an action

I'm developing a web site in ASP.NET MVC that uses jquery to control some plugins like spinner, toastr and others. My question is if I should call Action via jquery to validate the model and within Action make a call rest (which was built...
asked by 13.09.2015 / 00:56
1
answer

Convert String to Monetary Value in ASP.Net MVC

How to convert the result of a multiplication within a string to display as Real? The value of bol.ValorBoleto is loaded a little earlier. Data annotation : [DisplayFormat(ApplyFormatInEditMode = false, DataFormatString =...
asked by 18.08.2015 / 14:38
1
answer

Asp.NET MVC bind checkbox list with string value

I have a list of checkboxes and I need to bind values that are strings (@ item.SelectedValue) with my IEnumerable>. <div class="editor-field perfil-filtro-expander-todasAcoes"> <div class="metro perfil-filtro-expander-overflo...
asked by 21.08.2015 / 17:17
1
answer

MVC Dependency Injection

I'm using dependency injection to use Mock . I would like to know if I need to create an interface for my Model and another one for my Controller ? Thank you     
asked by 24.08.2015 / 18:20
2
answers

Template, relationship with DataAnnotations

If I have a Customers entity public class Cliente { public int ClienteId { get; set; } public string Email { get; set; } public string Nome { get; set; } } If I create a Boleto entity public class Boleto {...
asked by 03.02.2016 / 16:07
1
answer

How do I add a month to the current date with jquery

Good afternoon, How do I add a month to the current date: Example user types 4 in input qtdParcela : var _data = new Date(); $("#qtdeParcela").on("change", function () { var _qtde = $(this).val(); for (var i = 0; i <...
asked by 08.02.2016 / 18:05
2
answers

How to return to the previous page by the HandleErrorAttribute?

I'm trying to implement a global filter for error handling and started testing as follows: public class MyHandleErrorAttribute : HandleErrorAttribute { public override void OnException(ExceptionContext filterContext) { var exce...
asked by 24.09.2015 / 15:57