Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/11/2004, 11:39
carlostapia
 
Fecha de Ingreso: septiembre-2004
Mensajes: 141
Antigüedad: 20 años, 5 meses
Puntos: 0
Quien Me Explica Esto Porfa

MIREN ESTE EJEMPLO

Sub BindData()
'1. Create a connection
' Dim myConnection as New SqlConnection(ConfigurationSettings.AppSettings("c onnectionString"))
Dim MyConnection = New SqlConnection("Persist Security Info=False;User ID=docsadm;pwd=docsadm;Initial Catalog=SBIFBBVA;Data Source=TESTEDMS;Packet Size=4096;Workstation ID=ISRV_EDMS")

'2. Create the command object, passing in the SQL string

Const strSQL as String = "spx2"
Dim myCommand as New SqlCommand(strSQL, myConnection)

'Set the datagrid's datasource to the datareader and databind

myConnection.Open()
dgPopularFAQs.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
dgPopularFAQs.DataBind()

End Sub



ALGUIEN ME PUEDE EXPLICAR LAS ULTIMS 2LINEAS NO ENTIENDO QUE ES

DG.POPULARfAQ.DATABIND()

NECESITO SABER QUE ES DATAIND() PORQUE ME DA UN ERROR