Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/07/2003, 10:29
Avatar de vamp_02
vamp_02
 
Fecha de Ingreso: febrero-2002
Ubicaci髇: Santiago de Chile
Mensajes: 367
Antig黣dad: 23 a駉s
Puntos: 0
Me ayudan con este datagrid....

De ante mano gracias.

Me puede ayudar, no entiendo.......

Tengo esta conexion
Dim objConn As New OleDbConnection ConfigurationSettings.appSettings("ConnectionStrin g"))
Dim sSQL as string
sSQL="select a.CORRELATIVO,a.FCH_EMISION,a.FCH_VCTO,a.OF_REG,a. NUM_INTER from principa_adm a where a.CORRELATIVO is not null order by 4,1"
'response.Write(ssql)
Dim objCmd As New OleDbCommand (sSQL, objConn)
objConn.open
Dim ds as dataset
DS = new DataSet()
objcmd.Fill(ds, "principa_adm")
MyDataGrid.DataSource=ds.Tables("principa_adm").De faultView
MyDataGrid.DataBind()

Este es el Datagrid....
<ASP:DataGrid id="MyDataGrid" runat="server" Width="700" BackColor="#ccccff" BorderColor="black" ShowFooter="false" CellPadding=3 CellSpacing="0" Font-Name="Verdana" Font-Size="8pt" HeaderStyle-BackColor="#aaaadd" EnableViewState="true" AutoGenerateColumns="true" />

Y este el error:

Error de compilaci贸n
Descripci贸n: Error durante la compilaci贸n de un recurso requerido para dar servicio a esta solicitud. Revise los detalles de error espec胈ficos siguientes y modifique el c贸digo fuente en consecuencia.

Mensaje de error del compilador: BC30188: Se esperaba una declaraci髇.

Error de c贸digo fuente:



L胈nea 30: Dim objConn As New OleDbConnection (ConfigurationSettings.appSettings("ConnectionStri ng"))
L胈nea 31: Dim sSQL as string
L胈nea 32: sSQL="select a.CORRELATIVO,a.FCH_EMISION,a.FCH_VCTO,a.OF_REG,a. NUM_INTER from principa_adm a where a.CORRELATIVO is not null order by 4,1"
L胈nea 33:'response.Write(ssql)
L胈nea 34:Dim objCmd As New OleDbCommand (sSQL, objConn)


Archivo de origen: c:\inetpub\wwwroot\demo\datos_Cobranza_01.aspx L胈nea: 32

Favor ayuda....gracias


__________________
yerba mala nunca....te la fumes...