Author: Snadder | Posted on: 7/18/2008 11:40:12 PM | Views : 417

Hello everyone,


I'm quite new with asp.net.
I want to use multiple global functions in asp.net.

Now I found that I have to use a Public Class with the Public Shared Functions in it.
So I made a file called Utility.aspx.vb which looks like this:

 Namespace Omzetten

Public Class Utility



Public Shared Function bepOmschrijving(input As integer) As String


End Function

End Class
End Namespace

In the file where I want to use the function I have the following code:

I have put this on top of the file:
 <%@ import Namespace="Omzetten" %> 
and the following code where I want to use the function:

 

 Go to the complete details ...