K
Kristoffer
Hi!
I have a general db class (a normal class, that contains the functions and
subs to enable me to connect to my database) ok...
but, HOW??
Do, I make use of this class in my asp.net application...
I need to contact it from my codebehind page...
but, I contact my codebehind page with the src= tag, so it compiles when I
contact the webpage, and not before...
the class is also a normal vb.net class, so its called dbclass.vb
How do I make use of this class from my codebehindpage?
eg...
member.ascx - Control, that shows the db info...
member.ascx.vb - Codebehindpage...
.../classes/dbclass.vb - the dbclass that handles the db connection...
dbclass example function, that I need to be able to contact from the
chkuserEmail sub...
Public Function readRS(ByVal strQuery As String) As Object
End Function
the member.ascx.vb page contains a sub that for instance is going to check
the db for something:
'--Custom Validators--
Sub ChkuserEmail(source As object, args As ServerValidateEventArgs)
How do I contact the readRS function from here???
End Sub
--
Kristoffer Arfvidson - (e-mail address removed)
Tel: +46 (0)733 - 442 660
Please visit us: www.arfvidson.se
Dansportalen - Nordens STÖRSTA webb om dans!
www.dansportalen.se (Finns nu på tre språk)
I have a general db class (a normal class, that contains the functions and
subs to enable me to connect to my database) ok...
but, HOW??
Do, I make use of this class in my asp.net application...
I need to contact it from my codebehind page...
but, I contact my codebehind page with the src= tag, so it compiles when I
contact the webpage, and not before...
the class is also a normal vb.net class, so its called dbclass.vb
How do I make use of this class from my codebehindpage?
eg...
member.ascx - Control, that shows the db info...
member.ascx.vb - Codebehindpage...
.../classes/dbclass.vb - the dbclass that handles the db connection...
dbclass example function, that I need to be able to contact from the
chkuserEmail sub...
Public Function readRS(ByVal strQuery As String) As Object
End Function
the member.ascx.vb page contains a sub that for instance is going to check
the db for something:
'--Custom Validators--
Sub ChkuserEmail(source As object, args As ServerValidateEventArgs)
How do I contact the readRS function from here???
End Sub
--
Kristoffer Arfvidson - (e-mail address removed)
Tel: +46 (0)733 - 442 660
Please visit us: www.arfvidson.se
Dansportalen - Nordens STÖRSTA webb om dans!
www.dansportalen.se (Finns nu på tre språk)