ASP.NET

Moderators: None (Apply to moderate this forum)
Number of threads: 1727
Number of posts: 3292

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Using classes and modules Posted by bsaucer on 15 Mar 2007 at 8:24 AM
I recently wrote a VB application which refers to a class and a module (each in separate VB files). I am now writing an ASP.Net web app and would like to use the same class and module in this application. However, the main code cannot recognize the class or the module, and they cannot recognize each other. Am I missing something?
Report
Re: Using classes and modules Posted by iwilld0it on 15 Mar 2007 at 9:59 AM
- How are u using the class?
- Are your class and modules defined in a namespace?
You may have to import the namespace depending on how you are using the class.


: I recently wrote a VB application which refers to a class and a module (each in separate VB files). I am now writing an ASP.Net web app and would like to use the same class and module in this application. However, the main code cannot recognize the class or the module, and they cannot recognize each other. Am I missing something?
:

Report
Re: Using classes and modules Posted by bsaucer on 15 Mar 2007 at 11:50 AM
The class contains properties, methods, and operators. I am creating instances of the class and calling its members.

There are two modules. One works in conjunction with the class. The second module uses the class and calls methods in the first module. Each module has public methods. The web app calls a method in the second module.

I tried putting the class and module in namespaces and importing them in the web app, and also importing the first namespace in the second. However, the files still don't recognize each other's namespaces. It's as if each file is isolated from the others.

: - How are u using the class?
: - Are your class and modules defined in a namespace?
: You may have to import the namespace depending on how you are using the class.
:
:
: : I recently wrote a VB application which refers to a class and a module (each in separate VB files). I am now writing an ASP.Net web app and would like to use the same class and module in this application. However, the main code cannot recognize the class or the module, and they cannot recognize each other. Am I missing something?
: :
:
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.