Click to See Complete Forum and Search --> : Using modules in ASP.NET?


MdWebtress
10-20-2004, 09:14 AM
Can anyone tell me how to do this? What do I need to link it to my webform? Right now, I'm trying it out with a simple module (module1.vb):

Public Module something

Dim myInt As Integer = 77
End Module

My intent is to have this be used on all webforms.

I also tried something like this in my code:

Dim a As something

But it says "Module 'something' can not be used as a type".

chrismartz
10-20-2004, 08:10 PM
you should post this in the .net section of the site!

MdWebtress
10-21-2004, 07:48 AM
yeah, I was debating that. Didn't know if it should've been in .NET or ASP...