Reusing Code in an ASP.NET web site

newbie_gb

New member
Joined
Aug 18, 2006
Messages
3
Programming Experience
Beginner
I know this is a lame question, but I am a new programmer, and am slowly figuring it out.

How do you use code one page to another. Say validating the person logged in is present in a table. How and where do you write a check function that all the pages in your project can access?
 
you can just put it in a vb class (eg *.vb) in your app_bin directory.

Make sure for each function, you specify
VB.NET:
Public Shared Function DoThis(blah blah blah...)

End Function

and not just
VB.NET:
Function DoThis(blah blah blah...)

End Function
 
Back
Top