Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Public Module in ASP.NET/VB.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 15 Jun 2007 15:30 GMT
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"?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.