A
AussieRules
Hi,
I have a asp.net project I am building in vstudio.net 2003
I have done VB.net projects, but this is my first asp.net(vb.net behind
code)
In a vb.net project I can have a global.bas file, define some public vars,
and then access them within any vb form. I do this with my sqlConnection
object.
I want to do the same with my asp.net app. That is connected once, and use
that connection accross all my asp.net forms
I have in the global.asax.vb file, a publicly declared sqlConnection object.
Within the global.asax.vb I have some functions that use the sqlConnection,
and they work fine.
My problem is that in an asp.net form, the sqlconnection object(declared in
the global) file seems to not be valid.
Is this even possible to do, or does every form have to have its own
declared vars, which would mean I would have to manage my SQL connection on
every form
hope that makes sense
thanks
I have a asp.net project I am building in vstudio.net 2003
I have done VB.net projects, but this is my first asp.net(vb.net behind
code)
In a vb.net project I can have a global.bas file, define some public vars,
and then access them within any vb form. I do this with my sqlConnection
object.
I want to do the same with my asp.net app. That is connected once, and use
that connection accross all my asp.net forms
I have in the global.asax.vb file, a publicly declared sqlConnection object.
Within the global.asax.vb I have some functions that use the sqlConnection,
and they work fine.
My problem is that in an asp.net form, the sqlconnection object(declared in
the global) file seems to not be valid.
Is this even possible to do, or does every form have to have its own
declared vars, which would mean I would have to manage my SQL connection on
every form
hope that makes sense
thanks