Questions tagged as 'asp.net'

1
answer

How do I show data in RAZOR MVC ASP.NET from SQL?

I have a SQL statement: var motivo = conexion.Query("SELECT * FROM historialvisitas WHERE idvisita ='"+rgtro+"' "); This table has several columns, how do I show via RAZOR @ the value of a specific column? Example: I want to sh...
asked by 14.03.2017 / 21:25
2
answers

Error in web.config in c #

Hello, I would like you to help me. I am running this file but I get an error in the web.config. I am using the visual studio 2013 and I think that earlier I would have done it with the visual studio 2005. The error comes to me like the image I...
asked by 10.02.2017 / 16:46
1
answer

Report viewer does not show the report when it runs on the server, but does it in local mode

Good. I'm working with asp.net. It turns out that I have a report that I generate in this way: private void MostrarReporte() { //reset rptViewerActaVolante.Reset(); //dataSource int idMateria = Convert.ToInt...
asked by 17.04.2017 / 21:05
1
answer

Object values in ASP are not updated

Hello, I am handling the following form in ASP : <tr> <td width="20%"> <dx:ASPxLabel runat="server" Text="Documento"></dx:ASPxLabel> </td> <td width="20%"> <dx:ASPxComboBox runat...
asked by 03.01.2017 / 19:07
2
answers

How to leave the selected value using html.dropdowlist in MVC C # with aspx engine, similar to razor

I have the following definition of list of options: <% dynamic listItems_Afirmacion = new List<ListItem> { new ListItem { Text = "Si", Value = "S"},...
asked by 06.01.2017 / 02:22
2
answers

NullReferenceException when passing parameter value by method get from JavaScript function

I need to pass a value by method get . On the start page I have
asked by 14.09.2016 / 16:28
2
answers

Add Event Click to a Button Asp.Net

I create a Button from code c #, now I need to add a method when I click on the ... I did this but it does not work public void AgregarBoton() { Button miBoton = new Button(); miBoton.ID = "BtnCheck";...
asked by 07.08.2016 / 15:33
1
answer

Add to TemplateField an ImageButton at run time

I have this TemplateField imgTemp = new TemplateField(); imgTemp.ItemTemplate = new ColumnaTemplate("Seleccion"); imgTemp.EditItemTemplate = new ElementoTemplate("Seleccion"); imgTemp.HeaderText = "Seleccion"; GridView1.Columns...
asked by 05.07.2016 / 02:07
2
answers

List Dropdownlist dependent or Married - Visual.Net -MVC

I would like to know how to use dependent Dropdownlist, for example that the CITY depends on the REGION, and that of the COUNTRY. I am currently using this way of working when listing a dropdownlist: In the controller;      Function Update...
asked by 12.07.2016 / 03:14
1
answer

Add google map with dot mark (longitude, latitude)

I want to add a map with a mark on my ASP.NET page, this code adds the map but not the point, what will I be doing wrong? function CreateMapGoogle() { var atrMap = { center: new google.maps.LatLng(40.712449, -74...
asked by 04.09.2016 / 19:30