Questions tagged as 'asp.net-mvc'

2
answers

Why does not the value that I send from the controller to the javascript of the view arrive?

I work ASP.NET MVC, Visual Studio 2015, the problem that is happening to me is that when I register a new record it sends me a json, it is more redirecting me showing me the json since my method is a JsonResul, then it does not It's nothing abno...
asked by 19.12.2017 / 23:50
1
answer

List by DNI - Asp.net mvc 4 db Access

I am programming in ncapas, asp.net mvc 4 bd Access and what I need is to list a data by your ID that I sent to you. If you arrive but do not filter. I still list all the info. This is my code. public List<TAsistenciaDTO> ObtenerAsistenc...
asked by 19.01.2018 / 00:08
1
answer

Convert image to base64 to view it in a view

Through a web api I am getting the path of an image stored on the server. The path is a string that I convert to an array of bytes and then convert it to a base64 image. When I visualize the image in the view, it does not throw an error but it d...
asked by 26.05.2017 / 19:47
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
2
answers

The query expects the parameter @Name that has not been provided

public bool IngresarUsuario(Prueba objeto) { using (SqlConnection cn = Conexion.Conectar("cadenaCon")) { try { cn.Open(); query = ("insert into Pruebas (Id,Nombre,Componente)values (@Id,@Nombre,@Co...
asked by 08.11.2016 / 18:47
1
answer

MVC 4 mark all checkboxes

Good morning, I'm doing a project in mvc4 razor, and in a view I need to show a table. So far so good, the problem comes when I have to put a checkbox in the header and one in each element of the table and the first checkbox mar...
asked by 22.06.2016 / 09:58
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