|
Im new to asp have to learn it for my new job.Here is the code. is it to do with the import namespace? thanks for any help
<%@ Import Namespace="System.Data.OleDb" %>
<script runat="server">
Sub Page_Load(ByVal System, ByVal overlaods)
Dim dbconn, sql, dbread, dbcomm
dbconn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; data source=n:\email.mdb;")
dbconn.Open()
sql = "SELECT * FROM details"
dbcomm = New OleDbCommand(sql, dbconn)
dbread = dbcomm.ExecuteReader()
details.DataSource = dbread
details.DataBind()
dbread.Close()
dbconn.Close()
End Sub
</script>
|