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

2
answers

How can I refresh a form made with ajax so that the inputs are clean?

I have a form made with ajax using Ajax.BeginForm this I have it in a modal, the problem that I have is that when I send the form I make the modal one close with jQuery but if I open the modal the values of the inputs that I had pr...
asked by 22.06.2018 / 16:42
1
answer

Why does not the data annotation StringLength [] and MaxValuie [] work for me?

I am having problems to implement the asp.net mvc 5 annotations. When designing my model, I put the [StringLength] annotation to validate that the user enters a minimum and maximum number of digits. It works well, but at the moment of mak...
asked by 28.05.2018 / 18:07
2
answers

Multiplication and sum of results of a Foreach

Hello StackOverFlow colleagues, I am currently trying to multiply percentages%, but currently I have not been able to perform this operation, Considering that it is a foreach that loads both inputs .weight and .qualification the...
asked by 28.06.2017 / 18:20
3
answers

What is the difference between HttpPost and HttpGet in MVC 5?

What is the difference between using [HttpGet] and [HttPost] , when should one be used and when the other?     
asked by 05.04.2017 / 04:27
3
answers

someone knows how to perform excel with asp c # with store procedure with parameters [duplicate]

I am making a report with a stored procedure that has 3 entries in it, one is the amount, date, option, and on my page it has 3 input entries to enter and when you press export an excel file is downloaded, the problem is that it shows me an er...
asked by 03.01.2017 / 22:11
1
answer

list data in a partial view by passing it from a modal window

I have a modal window with a form from which I want to return the data entered in a partial view and put them on the list as they are added I already have the modal window with an Ajax.BeginForm () and I pass the data to the partial view through...
asked by 25.08.2016 / 18:28
3
answers

web site in mvc can not connect to the database in azure sql

I have a site in mvc that connects to a database all mounted in Azure , when a local site test is done correctly, but when doing the deploy a Azure shows that you can not connect the site with DB . the database firew...
asked by 25.01.2016 / 14:50
1
answer

Can I select which validations of a property of a class to use according to what view?

//Propiedad de la clase "Usuario" con sus respectivas validaciones [ValidateDNIRepetit(ErrorMessage = "El correo ya existe")] [Required(ErrorMessage = "El campo no puede estar vacio")] [EmailAddress(ErrorMessage = "No es una dirección de correo v...
asked by 14.03.2016 / 17:43
2
answers

I have a property in a class, which contains a list of objects of another class, in which layer I fill the list?

Greetings, I have a class called Cv (Currículum vitae) and apart from the typical properties: Name, Surname, DNI ... it also contains a property "Driving licenses" which is a list of objects of the class "Driving licenses". Where do I have to ge...
asked by 02.02.2016 / 17:29
1
answer

APS.NET MVC stored procedure that returns an array

How can I create a stored procedure that shows me employee deductions I need a result like this: where it shows the uniform deduction This is the table employees is the table deductions this is the Deductions Detail table...
asked by 19.10.2018 / 22:58