Questions tagged as 'asp.net'

2
answers

Selection from several tables

I have this query that works well var rest = (from de in se.DeliveryConfiguration join re in se.restaurant on de.Restaurantid equals re.RestaurantID where (de.Position.Distance(geografi)/1000) < de.Distance...
asked by 27.09.2016 / 20:04
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
2
answers

How to call the event ComboBox1_SelectedIndexChanged in c #

How to call the event ComboBox1_SelectedIndexChanged from a function? I want to trigger the events that are programmed in the SelectedIndexChanged .     
asked by 26.05.2016 / 19:56
1
answer

Get cell value GridView

I have not found a way to retrieve the values of a gridview row with jQuery or JavaScript to place it in input . I do not have a code, I only place the most similar one that is to retrieve values from a table. This is how my table looks...
asked by 25.02.2018 / 06:53
2
answers

Problems with C # and TextMode="Number"

Good evening, I currently have a big problem with c # in asp.net, the following happens: To the textbox I am placing a textmode="Number" so that only adding numbers, it turns out that for a strange reason Visual Studio 2012 send this error:  ...
asked by 07.06.2016 / 04:52
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

How to do select with related tables

I have two tables (client) and (invoice), to register an invoice I am doing it this way: SqlCommand query = new SqlCommand("insert into factura (identificacion, nombrecp, " + "fecha, iva, tipo, vtotal, descripcion, subtotal) " +...
asked by 21.11.2018 / 04:35
1
answer

ASP how to create a table

Currently this is my ASP code, but I have no idea how I could create a table that divides the ID and Name of the cars <% if isArray(listaTipo) then for i = lbound(listaTipo ,2) to ubound(listaTipo ,2) response.write ( "ID->"& li...
asked by 06.11.2018 / 21:46
3
answers

Hide and Show div with Google Map

I have a div on my ASP.NET page that contains a Google Map, and I need to show it and hide it but it does not work for me. This is the code divided by lengaujes : Javascript: function ShowMap() { var mapa = document.getElemen...
asked by 08.09.2016 / 21:30