473,789 Members | 2,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Should be very simple.... Where is the error ?

Hi. I have a class "MyCustomBoundC olumn.vb" which looks like this

_______________ _______________ _______________ _______________ ________
Imports System
Imports System.Web.UI.W ebControls

Namespace Alex
Public Class MyCustomBoundCo lumn
Inherits BoundColumn
............... ..............
End Class
End Namespace
_______________ _______________ _______________ _______________ ________

and another, MyCustomDataGri d.vb, like this:

_______________ _______________ _______________ _______________ ________
Imports System
Imports System.Web.UI.W ebControls

Namespace Alex
Public Class MyCustomDataGri d
Inherits DataGrid
............... ..............
End Class
End Namespace
_______________ _______________ _______________ _______________ ________

I need to use MyCustomDataGri d in an aspx page, therefore:
<%@ Register Tagprefix = "MyTag" Namespace="Alex " Assembly =
"MyCustomDataGr id" %>

and in the form

<MyTag:MyCustom DataGrid runat="server" AutoGenerateCol umns="False">
<Columns>
<MyTag:MyCustom BoundColumn DataField="Colu mn1" etc
></MyTag:MyCustomB oundColumn>
<MyTag:MyCustom BoundColumn DataField="Colu mn2" etc
></MyTag:MyCustomB oundColumn>
</Columns>
</MyTag:MyCustomD ataGrid>

However, I get "MyCustomDataGr id is not a known element", and then a
cascade of other errors. I guess I'm missing something elementary....
but what ?

Thanks.
Alex

Jan 18 '07 #1
1 1025
PS. The projects name is TestCustomDataG rid... Even if I try with
<%@ Register Tagprefix = "MyTag" Namespace="Alex " Assembly =
"TestCustomData Grid" %>
it does not work.

Should I create a DLL first ? (Using vbc ?) Can't my classes be in the
same project ?
If so, I guess I should create MyCustomBoundCo lumn.dll first, and then,
somehow, reference to it in
MyCustomDataGri d and create MyCustomDataGri d.dll, and then move
MyCustomDataGri d.dll in the BIN folder of the project
TestCustomDataG rid, and then try again... I tried that, but I can't
compile
MyCustomDataGri d because it says it doesn't know who
MyCustomBoundCo lumn is.....

Radu wrote:
Hi. I have a class "MyCustomBoundC olumn.vb" which looks like this

_______________ _______________ _______________ _______________ ________
Imports System
Imports System.Web.UI.W ebControls

Namespace Alex
Public Class MyCustomBoundCo lumn
Inherits BoundColumn
............... .............
End Class
End Namespace
_______________ _______________ _______________ _______________ ________

and another, MyCustomDataGri d.vb, like this:

_______________ _______________ _______________ _______________ ________
Imports System
Imports System.Web.UI.W ebControls

Namespace Alex
Public Class MyCustomDataGri d
Inherits DataGrid
............... .............
End Class
End Namespace
_______________ _______________ _______________ _______________ ________

I need to use MyCustomDataGri d in an aspx page, therefore:
<%@ Register Tagprefix = "MyTag" Namespace="Alex " Assembly =
"MyCustomDataGr id" %>

and in the form

<MyTag:MyCustom DataGrid runat="server" AutoGenerateCol umns="False">
<Columns>
<MyTag:MyCustom BoundColumn DataField="Colu mn1" etc
</MyTag:MyCustomB oundColumn>
<MyTag:MyCustom BoundColumn DataField="Colu mn2" etc
</MyTag:MyCustomB oundColumn>
</Columns>
</MyTag:MyCustomD ataGrid>

However, I get "MyCustomDataGr id is not a known element", and then a
cascade of other errors. I guess I'm missing something elementary....
but what ?

Thanks.
Alex
Jan 18 '07 #2

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

Similar topics

303
17783
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b. Yahoo store was originally written in Lisp. c. Emacs The issues with these will probably come up, so I might as well mention them myself (which will also make this a more balanced
124
4971
by: 43 | last post by:
how come m$Office isn't written in .net? how come Open Office isn't written in j2ee? how come dbms systems aren't written in either? how come browsers aren't written in either? how come RealPlayer, MediaPlayer and all applications that need speed are written in c++ ? (except for
36
4112
by: Jack Hughes | last post by:
This argument has come up two or three times lately. We have a web standards document at our company that say "Use valid HTML 4; We don't recommend switching to DIV-based CSS-P for layout just yet though, tables are a lot easier." That's because we have a lot of developers who aren't ready to move to CSS-P and DIVs just yet. But I'm being told our policies were contradictory. If we're going to
40
3047
by: Steve Juranich | last post by:
I know that this topic has the potential for blowing up in my face, but I can't help asking. I've been using Python since 1.5.1, so I'm not what you'd call a "n00b". I dutifully evangelize on the goodness of Python whenever I talk with fellow developers, but I always hit a snag when it comes to discussing the finer points of the execution model (specifically, exceptions). Without fail, when I start talking with some of the "old-timers"...
175
8910
by: Ken Brady | last post by:
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be changed". This is very much against my instincts. Can anyone offer some solid design guidelines for me? Thanks in advance....
7
1872
by: Mark P | last post by:
The following compiles without error on four different platforms (Linux g++, Sun CC, HP aCC, Win Dev-C++) so I suspect it's ok, but I don't see why this isn't a const-related error. pB is a pointer to constant B and foo() is a non-constant function invoked on a (reference) member of B. Can someone explain this? Thanks, Mark struct A
1
1201
by: liav.ezer | last post by:
This is the error: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) No database selected given after trying to browse to my login.asp. my DB is mysql & i have a successful ODBC connection with it (i tested it). Should i choose a database? where? Above is the referenced code from which the error accurs (last line causes the error):
4
1144
by: Efy | last post by:
Hi, I was debugging my JavaScript in VS2005, the script probably had an error some ware (Line 25), after I fixed the error, I am trying to run the page again I am getting the same error "Illegal argument" at that same line 25. What ever I did does not help, I have closed the program, I restarted my computer, I changed the page to contain very simple html script with no js the error is still there on line 25. I deleted all lines living...
5
1965
by: Michael | last post by:
Hi All, I have three very simple files as below. When I try and compile these with g++ -ansi -Wall -pedantic -o crap Base.h Other.h I get an error: Base.h:7: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate.
8
2220
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - When should I use eval? ----------------------------------------------------------------------- The ` eval() ` function should _only_ be used when it is necessary to evaluate a string supplied or composed at run-time; the string can be anything from a simple (but unpredictable) expression such as 12*2.54 to a substantial piece of javascript code. The `...
0
9663
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9506
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10404
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10193
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9016
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7525
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4089
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
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.