C
Co
Hi All,
I want to create a html page from within a vb.net program.
I need to put some data from my database into the html page when it is
created:
Protected Sub DocumentDetailHandler(ByVal sender As System.Object,
ByVal e As System.EventArgs)
Dim I As Integer
Dim ID As Integer
For I = 0 To ListView.SelectedItems.Count - 1
ID = ListView.SelectedItems(I).Tag
Next
Dim sql As String = "SELECT * FROM Bestanden WHERE Id=" & ID
Dim cmd As New OleDbCommand(sql, conn)
Dim dr As OleDbDataReader
conn.Open()
dr = cmd.ExecuteReader()
Do While (dr.Read())
dr.Item("filenaam")
dr.Item("hddlokatie")
dr.Item("datum_gemaakt")
dr.Item("filenaam"))
Loop
dr.Close()
conn.Close()
End Sub
This code retrieves the data from the database.
Now I need some code which puts these into a html page.
Marco
I want to create a html page from within a vb.net program.
I need to put some data from my database into the html page when it is
created:
Protected Sub DocumentDetailHandler(ByVal sender As System.Object,
ByVal e As System.EventArgs)
Dim I As Integer
Dim ID As Integer
For I = 0 To ListView.SelectedItems.Count - 1
ID = ListView.SelectedItems(I).Tag
Next
Dim sql As String = "SELECT * FROM Bestanden WHERE Id=" & ID
Dim cmd As New OleDbCommand(sql, conn)
Dim dr As OleDbDataReader
conn.Open()
dr = cmd.ExecuteReader()
Do While (dr.Read())
dr.Item("filenaam")
dr.Item("hddlokatie")
dr.Item("datum_gemaakt")
dr.Item("filenaam"))
Loop
dr.Close()
conn.Close()
End Sub
This code retrieves the data from the database.
Now I need some code which puts these into a html page.
Marco