Public Module in ASP.NET/VB.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. I'm trying to create a Public Module in a VB.NET/ASP.NET application.
When coding the module I don't get real-time error checking/intellisense from
Visual Studio. Basically I can type whatever I want into the module, and VS
doesn't error check it or anything.

Error checking & intellisense work for everything else in the project
including code-behind files and other classes.

Why doesn't VS provide error checking/intellisense for VB.NET Modules? Thanks
 
You could use a class with shared members instead, the difference being
you'll have to use the class name (which could be not that bad).

Actually I gave this a try and intellisense works as expected. I would try
to create an empty project and see how it behaves to find out if this is a
problem in your VS.NET setup or something in this particular project that
prevent intellisense to work...
 
If you right-click on the module in the solution explorer and click
"properties", is the "Build Action" property set to "Compile"?
 
Back
Top