473,585 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Class declaration

I have an ASP.Net 1.1 (VB) application where I have several usercontrols,
one is
called DetailLine.

Dim ucLine As DetailLine ' this code works fine

In converting this application to ASP.Net 2.0 I run into this problem. Now
this line of code wont compile:

Dim ucLine As DetailLine

And I dont see any of my classes in Intellisense, like the usercontrols and
other objects in the project. I'm obviously still learning the 2.0
framework, am I not declaring this class correctly? Here's the class
declaration:

Public Class DetailLine
Inherits System.Web.UI.U serControl

Public Sub DoSomething()

End Sub
End Class
Thanks for your help in advance, DougS

Jun 28 '07 #1
2 1764
On Jun 28, 4:41 pm, "Doug Stiers" <nonewrote:
I have an ASP.Net 1.1 (VB) application where I have several usercontrols,
one is
called DetailLine.

Dim ucLine As DetailLine ' this code works fine

In converting this application to ASP.Net 2.0 I run into this problem. Now
this line of code wont compile:

Dim ucLine As DetailLine

And I dont see any of my classes in Intellisense, like the usercontrols and
other objects in the project. I'm obviously still learning the 2.0
framework, am I not declaring this class correctly? Here's the class
declaration:

Public Class DetailLine
Inherits System.Web.UI.U serControl

Public Sub DoSomething()

End Sub
End Class

Thanks for your help in advance, DougS
Perhaps if you told us what the error is?

Is the assembly that contains your class referenced? Have you
imported the namespace for your class? You need to provide more
information.

Chris

Jun 29 '07 #2
It's all part of the same assembly. In the old 1.1 app I could reference
AssmeblyName.Cl assName, is there something I need to do to give my web app
an NameSpace?

"Chris Dunaway" <du******@gmail .comwrote in message
news:11******** **************@ u2g2000hsc.goog legroups.com...
On Jun 28, 4:41 pm, "Doug Stiers" <nonewrote:
>I have an ASP.Net 1.1 (VB) application where I have several usercontrols,
one is
called DetailLine.

Dim ucLine As DetailLine ' this code works fine

In converting this application to ASP.Net 2.0 I run into this problem.
Now
this line of code wont compile:

Dim ucLine As DetailLine

And I dont see any of my classes in Intellisense, like the usercontrols
and
other objects in the project. I'm obviously still learning the 2.0
framework, am I not declaring this class correctly? Here's the class
declaration:

Public Class DetailLine
Inherits System.Web.UI.U serControl

Public Sub DoSomething()

End Sub
End Class

Thanks for your help in advance, DougS

Perhaps if you told us what the error is?

Is the assembly that contains your class referenced? Have you
imported the namespace for your class? You need to provide more
information.

Chris

Jun 29 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2694
by: Trevor Lango | last post by:
What is the appropriate syntax for placing a friend function that includes as one of it's parameters a pointer to the class object itself within the template class? I have the following: //**************************************************** // testClass.h //**************************************************** #ifndef TESTCLASS_H
5
1323
by: Walt Karas | last post by:
Is this code legal under the standard? struct A { int i; struct C { unsigned offset_of_c(void) { return((unsigned) &(((A *) 0)->c)); }
5
1927
by: Xiangliang Meng | last post by:
Hi, all. What are the benefit and the drawback of defining a class embedded inside another class? For example: class List { public:
21
2083
by: anddos | last post by:
i am just wondering what is the friend in a class , ive got a book about c++ but it dosent explain deep enough . anyone care to make a example with a few notes on what the friend can benifit from. thanks
23
3831
by: mark.moore | last post by:
I know this has been asked before, but I just can't find the answer in the sea of hits... How do you forward declare a class that is *not* paramaterized, but is based on a template class? Here's what I thought should work, but apparently doesn't: class Foo; void f1(Foo* p)
3
8853
by: yancheng.cheok | last post by:
hello all, how can i make, a forward declaration class's enum member, being visible by another class? consider the following case, ---------------------------- dog.h ----------------------------
4
7990
by: zfareed | last post by:
#include <iostream> #include <fstream> using namespace std; template<class ItemType> class SortedList { private:
7
1453
by: Jess | last post by:
Hello, I'd like to declare two classes to be friend classes, I did the following: #include<iostream> using namespace std; class A{
9
8870
by: Jess | last post by:
Hello, I was told that if I declare a static class constant like this: class A{ static const int x = 10; }; then the above statement is a declaration rather than a definition. As I've *defined* "x"'s value to be 10, isn't above statement a
15
7848
by: akomiakov | last post by:
Is there a technical reason why one can't initialize a cost static non- integral data member in a class?
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7950
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8212
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.