How to import a class?


S

Shapper

Hello,

In my web site aspx.vb files I have a few functions which are common to
all .aspx pages. I want to move all to a common file.

I am thinking in placing all common functions in a class (common.vb
file):

Imports System
Namespace global
Public Class global
Public Sub Function01()
...
End Sub
...
End Class
End Namespace

Is this the best way to do this?

What should be the code in my aspx.vb files to call the class and to use
the functions in it?

Thank You,
Miguel
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top