nevets2001uk
IS-IT--Management
Hi.
I want to create some global variables for my ASP.NET application. I believe I can set them in the global.asax file. I am currently using this code for the file...
<Script Runat="Server">
Sub Application_Start
Dim conParts as OleDbConnection
Dim cmdSelectPart as OleDbCommand
Dim dtrPart as OleDbDataReader
End Sub
</Script>
When I run the pages the variables are creating un-defined errors. Is there something extra I should do? Or am I completely on the wrong track?
Thanks
I want to create some global variables for my ASP.NET application. I believe I can set them in the global.asax file. I am currently using this code for the file...
<Script Runat="Server">
Sub Application_Start
Dim conParts as OleDbConnection
Dim cmdSelectPart as OleDbCommand
Dim dtrPart as OleDbDataReader
End Sub
</Script>
When I run the pages the variables are creating un-defined errors. Is there something extra I should do? Or am I completely on the wrong track?
Thanks