473,509 Members | 3,039 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.UserControl

Public Sub DoSomething()

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

Jun 28 '07 #1
2 1759
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.UserControl

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.ClassName, is there something I need to do to give my web app
an NameSpace?

"Chris Dunaway" <du******@gmail.comwrote in message
news:11**********************@u2g2000hsc.googlegro ups.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.UserControl

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
2685
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: ...
5
1316
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
1921
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
2075
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....
23
3819
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? ...
3
8846
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
7986
by: zfareed | last post by:
#include <iostream> #include <fstream> using namespace std; template<class ItemType> class SortedList { private:
7
1445
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
8863
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...
15
7839
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
7234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7136
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7412
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...
0
5652
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,...
0
4730
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...
0
3216
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
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 ...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
441
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...

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.