i want to include this code snippet in an asp.net file and include it in every page where I need to open up my database. it was straightforward in asp. how do i get it done in asp.net? thanks
'this opens up my database
sub page_load(sender as object, e as eventargs)
Dim strConnectionString As String
strConnectionString="Provider=MSDASQL;DSN=SwisODBC;UID=SYSDBA;PWD=asdf"
End Sub
'this opens up my database
sub page_load(sender as object, e as eventargs)
Dim strConnectionString As String
strConnectionString="Provider=MSDASQL;DSN=SwisODBC;UID=SYSDBA;PWD=asdf"
End Sub