Public Module in ASP.NET/VB.NET

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
 
P

Patrice

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...
 
M

Monty

If you right-click on the module in the solution explorer and click
"properties", is the "Build Action" property set to "Compile"?
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top