Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instanciating an object from a Classlib What am I missin
Message
From
20/01/2006 16:43:47
 
 
To
20/01/2006 16:38:15
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01089052
Message ID:
01089060
Views:
21
>>I have created a Class Project which has been sucessfully tested in a Winforms project. Now I want to use this Class in a ASP WebForm project. In the Solution explorer I added a reference to the DLL and in the CodeBehind VB file I tried to instanciate the object as I did in WinForms. However the class reference is no in Intellesence and if I type it in the reference is flagged as an error. Here is a snippet of my code behind.
>>
>>
>>
>>Partial Class _Default
>>    Inherits System.Web.UI.Page
>>
>>    Dim nSearchId As Integer = -1
>>    Dim owsdata As New WebStoreData  (class name flagged as error)
>>
>>
>>    Public Sub New()
>>
>>    End Sub
>>End Class
>>
>
>When I have this issue, I do one compile so the environment knows about the recently added reference. The compile will not work because of this but it will refresh it. Does that help?

Thanks Michael but that didn't work. I commented out the "as new..." line and ran a compile. I then removed the comment and the error was flagged again.

Glenn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform