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
Juan T. Llibre - 15 Jun 2007 15:45 GMT
Is the module located in the App_Code folder ?
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
> 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
[quoted text clipped - 5 lines]
>
> Why doesn't VS provide error checking/intellisense for VB.NET Modules? Thanks
Mike - 15 Jun 2007 15:51 GMT
Yes
> Is the module located in the App_Code folder ?
>
[quoted text clipped - 11 lines]
> >
> > Why doesn't VS provide error checking/intellisense for VB.NET Modules? Thanks
Patrice - 15 Jun 2007 16:02 GMT
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...
--
Patrice
> Yes
>
[quoted text clipped - 17 lines]
>> > Why doesn't VS provide error checking/intellisense for VB.NET Modules?
>> > Thanks
Monty - 15 Jun 2007 18:15 GMT
If you right-click on the module in the solution explorer and click
"properties", is the "Build Action" property set to "Compile"?