473,785 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why doesnt custom TagPrefix work in controls made w/ VBNET?

I cannot get the custom Tag Prefix to work in controls made w/ VBNET. Why???
It works just fine in controls made w/ c#. Is vbnet just buggy?
Nov 17 '05 #1
5 2123
Anyone?
"Showjumper " <sh*******@grkj ashdjkf.com> wrote in message
news:uf******** ******@TK2MSFTN GP12.phx.gbl...
I cannot get the custom Tag Prefix to work in controls made w/ VBNET. Why??? It works just fine in controls made w/ c#. Is vbnet just buggy?

Nov 17 '05 #2

"Showjumper " <sh******@bells outh.net> wrote in message
news:un******** ******@TK2MSFTN GP11.phx.gbl...
Anyone?
"Showjumper " <sh*******@grkj ashdjkf.com> wrote in message
news:uf******** ******@TK2MSFTN GP12.phx.gbl...
I cannot get the custom Tag Prefix to work in controls made w/ VBNET.

Why???
It works just fine in controls made w/ c#. Is vbnet just buggy?


You might want to take the trouble to post a simple example of what you're
doing. There's not much to go on in your question.

Even if you had posted an example, it's a bit much to expect an answer in
less than 2 hours.

--
MikeB
Nov 17 '05 #3
Yeah i know its just been driving me nuts. I am working on a control wrtten
in VBNET. I add this to the assembly info file:
<Assembly: TagPrefix("Ride rDesign.Text", "RD")>

I build the project and add the control to the toolbox, drop it onto the
page and i still end up w/ cc1 as the tag prefix. Now in c# i do the same
thing and the tag prefix work right from the start - i have rd as the
prefix. .

"MikeB" <ma************ @mailnull.com> wrote in message
news:uQ******** ******@TK2MSFTN GP10.phx.gbl...

"Showjumper " <sh******@bells outh.net> wrote in message
news:un******** ******@TK2MSFTN GP11.phx.gbl...
Anyone?
"Showjumper " <sh*******@grkj ashdjkf.com> wrote in message
news:uf******** ******@TK2MSFTN GP12.phx.gbl...
I cannot get the custom Tag Prefix to work in controls made w/ VBNET.

Why???
It works just fine in controls made w/ c#. Is vbnet just buggy?


You might want to take the trouble to post a simple example of what you're
doing. There's not much to go on in your question.

Even if you had posted an example, it's a bit much to expect an answer in
less than 2 hours.

--
MikeB

Nov 17 '05 #4

"Showjumper " <sh*******@grkj ashdjkf.com> wrote in message
news:OW******** ******@TK2MSFTN GP12.phx.gbl...
Yeah i know its just been driving me nuts. I am working on a control wrtten in VBNET. I add this to the assembly info file:
<Assembly: TagPrefix("Ride rDesign.Text", "RD")>

I build the project and add the control to the toolbox, drop it onto the
page and i still end up w/ cc1 as the tag prefix. Now in c# i do the same
thing and the tag prefix work right from the start - i have rd as the
prefix. .
I'm just guessing (as I don't have time to test this), but when you set up a
VB project in VS.NET you get a 'root namespace' for the project that all of
your declared namespaces are underneath. The root namespace name defaults
to the name of the VB project. Check the properties page for the VB project
to see what I'm talking about.

So, in the VB project that's building the control, the namespace the control
is in is probably not "RiderDesign.Te xt", it's probably
"YourVBProjectN ame.RiderDesign .Text". The page designer doesn't see a
matching TagPrefix attribute, and gives the default prefix of "cc1".

I did a (very) minor rant on this default root namespace thing a couple of
weeks ago. I'll bet you'll want to do the same if this turns out to be your
problem.

"MikeB" <ma************ @mailnull.com> wrote in message
news:uQ******** ******@TK2MSFTN GP10.phx.gbl...

"Showjumper " <sh******@bells outh.net> wrote in message
news:un******** ******@TK2MSFTN GP11.phx.gbl...
Anyone?
"Showjumper " <sh*******@grkj ashdjkf.com> wrote in message
news:uf******** ******@TK2MSFTN GP12.phx.gbl...
> I cannot get the custom Tag Prefix to work in controls made w/ VBNET. Why???
> It works just fine in controls made w/ c#. Is vbnet just buggy?
>
>


You might want to take the trouble to post a simple example of what you're doing. There's not much to go on in your question.

Even if you had posted an example, it's a bit much to expect an answer in less than 2 hours.

--
MikeB



--
MikeB
Nov 17 '05 #5
Thats it. All this grief because VB mangles the namespace.
"MikeB" <ma************ @mailnull.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..

"Showjumper " <sh*******@grkj ashdjkf.com> wrote in message
news:OW******** ******@TK2MSFTN GP12.phx.gbl...
Yeah i know its just been driving me nuts. I am working on a control wrtten
in VBNET. I add this to the assembly info file:
<Assembly: TagPrefix("Ride rDesign.Text", "RD")>

I build the project and add the control to the toolbox, drop it onto the
page and i still end up w/ cc1 as the tag prefix. Now in c# i do the same
thing and the tag prefix work right from the start - i have rd as the
prefix. .


I'm just guessing (as I don't have time to test this), but when you set up

a VB project in VS.NET you get a 'root namespace' for the project that all of your declared namespaces are underneath. The root namespace name defaults
to the name of the VB project. Check the properties page for the VB project to see what I'm talking about.

So, in the VB project that's building the control, the namespace the control is in is probably not "RiderDesign.Te xt", it's probably
"YourVBProjectN ame.RiderDesign .Text". The page designer doesn't see a
matching TagPrefix attribute, and gives the default prefix of "cc1".

I did a (very) minor rant on this default root namespace thing a couple of
weeks ago. I'll bet you'll want to do the same if this turns out to be your problem.

"MikeB" <ma************ @mailnull.com> wrote in message
news:uQ******** ******@TK2MSFTN GP10.phx.gbl...

"Showjumper " <sh******@bells outh.net> wrote in message
news:un******** ******@TK2MSFTN GP11.phx.gbl...
> Anyone?
> "Showjumper " <sh*******@grkj ashdjkf.com> wrote in message
> news:uf******** ******@TK2MSFTN GP12.phx.gbl...
> > I cannot get the custom Tag Prefix to work in controls made w/

VBNET. > Why???
> > It works just fine in controls made w/ c#. Is vbnet just buggy?
> >
> >
>

You might want to take the trouble to post a simple example of what you're doing. There's not much to go on in your question.

Even if you had posted an example, it's a bit much to expect an answer in less than 2 hours.

--
MikeB



--
MikeB

Nov 17 '05 #6

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

Similar topics

0
1471
by: Lloyd Dupont | last post by:
I'm trying to create a templated custom control which hold a collection of something else in his property 'Panels' when this property is of type ArrayList it parse ok. however when I try to use a custom typed collection inherited from IList I get an error when parsing: Ligne 4 : <br> Ligne 5 : <galador:SelectPanel runat="server" id="SelectPanel1"> Ligne 6 : <Panels>
1
1914
by: Michael Skelton | last post by:
Hi I've created a new custom Web control. I have tried to customize the assembly attribute TagPrefix . However, each time I drag my custom control onto a form, it's TagPrefix is still "cc1". What am I missing here My control is nested within two namespaces: for example, OuterNamespace and InnerNamespace. Taking that into account, the AssemblyInfo.cs of my custom control's solution contains the following additional lines .. using...
2
1464
by: kal | last post by:
I have registered my custom control in web.config as follows: <add tagPrefix="PhoenixControls" namespace="PhoenixControls" assembly="PhoenixControls"/> I have added a file called phoenixcontrols.cs to App_Code folder and in this file is this simple code: namespace PhoenixControls {
4
2492
by: =?Utf-8?B?UmljaEI=?= | last post by:
I am trying to create a project using the ASP.NET AJAX accordion control. I would like to dynamically add panes to the control with a form template added when the pane is added. I have tried unsuccessfully in creating the whole pane as a user control and have succeeded in adding the pane and then dynamically adding the content which is a user control to the pane, dynamically within the page. However I would like to have a single pane...
0
9647
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
9489
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
10356
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
9959
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7509
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...
0
6744
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
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.