Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • Administrators
Posted (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 by PlausiblyDamp

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...