Referencing class custom methods

LadyReader1

Member
Joined
Apr 11, 2007
Messages
10
Programming Experience
10+
I have a class defined as clsWorkRecord. I have 2 asp pages which have code-behind that should be able to instantiate the class and then use those methods I have coded for that class (AddWorkRecord, UpdateWorkRecord, DeleteWorkRecord).

On one of those 2 pages I can do just that, however, on the 2nd page I instantiate the class (exactly as I did on the first page):
VB.NET:
Dim thisWorkRecord as new clsWorkRecord

but when I type "thisWorkRecord." none of the methods I wrote are visible in intellisense.

I am stumped. Any ideas?

Thanks.
 
Did you create the class...meaning can you see it in the solution explorer...if yes can you past the code of the class. Perhaps it contains all private methods? Perhaps your class does not contain a constructor and is not meant to be instanciated.

If you post the code and a screenshot of your solution explorer, or give me some more details, I could easily solve this issue for you.
 
Yes, I can see the class in Solution Explorer and yes, I was able to instantiate it on the first asp page code-behind. But not from the 2nd asp page code-behind.

All of the custom methods are either Public subs or Public functions.
 
Back
Top