Can someone please tell me how to do the equivalent of calling a static function from an aspx page written in VB? I am not an ASP.NET developer–I’ve inherited this project–but I can manage it if I know how to do this:
[LIST]
[]Write the public static function and save it in a file:
[LIST]
[]What is that file’s extension?
[*]Can you please give me a simple example of what it contains? Does the code have to be surrounded with <% %>?
[/LIST]
[*]Include/import/whatever that class/code in an aspx file and call the static function, like this:
[/LIST]
dim myVar As String = MyClass.doSomething(myInt)
Can the file containing the reused code be in the same directory as the pages reusing the code?