Hello,
In your project, you declare a class or module:
Public Class MyClass
OR
Public Module MyModule
You can call these at any scope within your application, so in your code behind file, you can make a call to
private sub Page_Load(..)
Dim objClass as New MyClass
Response.Write(objClass.MyMethod(..))
end sub
And do whatever with these methods. Alternatively if you declare a method as shared (
VB.NET) or static (C#), you can call it without instantiating the object:
private sub Page_Load(..)
Response.Write(MyClass.MyMethod(..))
end sub
Hope this helps,
Brian