patrick24601 Posted June 8, 2005 Posted June 8, 2005 Greetings and salutations! I have a VB CodeBehind called webform1.asx.vb. In it I am trying to use a class I have declared else where in the directory hierarchy within this application. The code behind page says: dim test1 as jobposition (getting error 'Type jobposition is undefined') jobposition.vb (within the jobposition namespace) is defined as: Namespace position ' may be vacant Public Class jobposition End Class ' END CLASS DEFINITION jobposition End Namespace ' position It is a couple of directoies down from the code behind, and I have insured that the folder has been included in the project. When I use the Visual Studio Class View I can drill down to and see the namespace and the class definition (WebApplication3.TopPackage.position). I have tried using "Imports Webapplication3.TopPackage.position" and it does not help. I shouldn't have to use it anyways ; it is already part of the project. Any idea as to what I am doing wrong? Quote
Administrators PlausiblyDamp Posted June 8, 2005 Administrators Posted June 8, 2005 (edited) Can you do something like dim test1 as Webapplication3.TopPackage.position.jobposition If not at what point does the intellisense stop providing you with options? Could you also check your namespaces are correct as you refer to the position and jobposition namespaces in your above post. Edited June 15, 2005 by PlausiblyDamp Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.