Information générale
Titre:
How to fill a table on my webpage
Hi all,
i'm try to work with asp.net and webmatrix, via the following code i have put information into a grid.
Dim ikl_kode As Integer = CInt(nCurrentclient.Tables(0).Rows(0)(0))
Dim connectionString As String = "server='(local)'; user id='xxx'; password='xxx'; database='xxx'"
Dim dbConnection As System.Data.IDbConnection = New System.Data.SqlClient.SqlConnection(connectionString)
dim GetHeaderInfo as string ="select * from online_dossierheader"
Dim dbCommand As System.Data.IDbCommand = New System.Data.SqlClient.SqlCommand
dbCommand.CommandText = GetHeaderInfo
dbCommand.Connection = dbConnection
dbconnection.open()
dim mycommand as new sqlcommand(GetHeaderInfo,dbconnection)
datagrid1.datasource=mycommand.ExecuteReader '(CommandBehavior.CloseConnection)
datagrid1.databind()
Now i wan't to do the same but for a table object. So i put the table object on my webpage but somehow i don't get te data in the table and displayed on the screen.
Could somebody help me on the way ?
thnx
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement