I want to create my own class, I guess, I have to create file animal.vb, where I define for example class cat. What I have to do, if I want to use it in my aspx page? Should I define somethink in web.config? I created file animal.vb and in my aspx page I imported
namespace animal, in script I definded MyCat As cat, but after that I recieved an error that cat is not defined.
I guess you have class Cat defined as a separate project in the same solution as the Web project. In the Web project you need to add a reference to the Cat project. Right click on Web project References node and choose Add reference. Then in Projects tab, choose
Cat.
Sltfish
Member
15 Points
3 Posts
My own class
Oct 04, 2003 08:32 AM|LINK
Mikhail Arkh...
All-Star
33139 Points
6083 Posts
Microsoft
Re: My own class
Oct 04, 2003 03:59 PM|LINK
------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.