Replace #include in ASP.NET
Hi Everyone,
I have just started migrating from ASP to ASP+ and have just been leaning dbconnections. Im wondering how you go about creating a global connection object and including into the Pages you require it as #include is not support in the Page_Load sub.
eg. my connection code is:
Sub Page_Load
Dim objConn, DBComm, strSQL, DBRead
objConn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; DATA Source=C:\Inetpub\wwwroot\ASPTutorials\TestCode\da tabase\Clients.mdb")
objConn.Open()
End Sub
What is the replacement for the in ASP.NET
Thanks Tim
TDA
__________________
TDA
|