473,503 Members | 2,142 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Type ... is not defined, WHY??

Hi

In my website I have a module, placed under App_Code with a number of
utility functions. For one of these functions I'm trying to pass a
usercontrol as an argument, however I keep getting 'Type myControl is not
defined' ... how come??, and how do I solve it??
Under App_Code:

Namespace myCompany.myProduct
Public Module myUtilities
Public Function myFunc(ByVal ctrl As
myCompany.myProduct.UserControls.myControl) As Boolean
ctrl.value="test"
End Function
End Module
End Namespace
Under: Customer/UserControls

Namespace myCompany.myProduct.UserControls
Partial Class myControl
Inherits System.Web.UI.UserControl
Public Property value() As Object
Get
End Get
Set(ByVal value As Object)
End Set
End Property
End Class
End Namespace

Oct 13 '06 #1
1 9070
Here's a similar thread that may help.

http://groups.google.com/group/micro...8b698e5acd4926

Thanks,

Seth Rowe
Søren M. Olesen wrote:
Hi

In my website I have a module, placed under App_Code with a number of
utility functions. For one of these functions I'm trying to pass a
usercontrol as an argument, however I keep getting 'Type myControl is not
defined' ... how come??, and how do I solve it??
Under App_Code:

Namespace myCompany.myProduct
Public Module myUtilities
Public Function myFunc(ByVal ctrl As
myCompany.myProduct.UserControls.myControl) As Boolean
ctrl.value="test"
End Function
End Module
End Namespace
Under: Customer/UserControls

Namespace myCompany.myProduct.UserControls
Partial Class myControl
Inherits System.Web.UI.UserControl
Public Property value() As Object
Get
End Get
Set(ByVal value As Object)
End Set
End Property
End Class
End Namespace
Oct 13 '06 #2

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

Similar topics

15
2306
by: Terje Slettebø | last post by:
Hi. I'm new here, and sorry if this has been discussed before; I didn't find it searching the PHP groups. (I've also read recommendations to cross-post to the other PHP groups, but if that is...
4
2920
by: Jari Kujansuu | last post by:
I can successfully parse XML document using SAX or DOM and I can also validate XML document against schema. Problem is that my program should deal with user-defined schemas which means that when...
4
3440
by: Jacob Jensen | last post by:
This question has probably been asked a million time, but here it comes again. I want to learn the difference between the three type cast operators: static_cast, reinterpret_cast, dynamic_cast. A...
21
2479
by: Nitin Bhardwaj | last post by:
Hi all, It is said that C++ is a strongly typed language and thus a type-safe language (unlike C). So how does one explain the following behaviour : int main(void) { char *p = NULL; p = "A...
8
2221
by: Rade | last post by:
Following a discussion on another thread here... I have tried to understand what is actually standardized in C++ regarding the representing of integers (signed and unsigned) and their conversions....
13
10387
by: dawatson833 | last post by:
I have several stored procedures with parameters that are defined with user defined data types. The time it takes to run the procedures can take 10 - 50 seconds depending on the procedure. If I...
14
7387
by: Matt | last post by:
I want to know if "int" is a primitive type, or an object? For example, the following two approaches yield the same result. > int t1 = int.Parse(TextBox2.Text); //method 1 > int t2 =...
3
2775
by: phil | last post by:
I recently tried converting my asp.net 1.1 app to 2.0 in visual studio 2005 beta 2. I get several "type xxx is not defined" errors. It seems that some of my code file within my web application...
7
1939
by: Michael | last post by:
Hi, I could understand the difference between class and object. However, I could find out a good definiton of type. how to understand the relaitonship between type, class, and object? Thanks! ...
70
3286
by: garyusenet | last post by:
I'm using an example piece of code: - namespace Wintellect.Interop.Sound{ using System; using System.Runtime.InteropServices; using System.ComponentModel; sealed class Sound{ public static...
0
7205
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
7093
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
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7349
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...
1
7008
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...
0
5594
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
4688
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
1521
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
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.