473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Making Tag with Web.UI.Control

Ros
Group,
Is there anyway to create a tag on a Web.UI.Control?

Lets say the label, can i add a Tag (property) like Common Form Controls have.

How does rending work? would i be able to use that to over ride the property
and add a custom tag?

I would like to add the tag so i can include the parameters on the
particular tag... so when i call a parameter SQL statement... i can use the
loop or do condition untill it finds the parameter value for that particular
control by using the tag string (parsing it or tag.contain(strSearch))

Any help or point me to the right direction would be greatly appreciated.
Thanks in advance.

Ros
Jul 13 '06 #1
3 845
Hello Ros,

Overriding .Tag is NOT a good idea. People expect .Tag to be under their
control.. not the control's control. Create a new property to hold your
crap.

-Boo
Group,

Is there anyway to create a tag on a Web.UI.Control?

Lets say the label, can i add a Tag (property) like Common Form
Controls have.

How does rending work? would i be able to use that to over ride the
property and add a custom tag?

I would like to add the tag so i can include the parameters on the
particular tag... so when i call a parameter SQL statement... i can
use the loop or do condition untill it finds the parameter value for
that particular control by using the tag string (parsing it or
tag.contain(strSearch))

Any help or point me to the right direction would be greatly
appreciated.

Thanks in advance.

Ros

Jul 13 '06 #2
Ros
Boo,

When you mentioned "Create a new property", did you mean create a custom
attribute?

AttributeTargets.Property?
if this is correct, you have greatly helped. Please advice.

Thanks again in advance.
Ros

"GhostInAK" wrote:
Hello Ros,

Overriding .Tag is NOT a good idea. People expect .Tag to be under their
control.. not the control's control. Create a new property to hold your
crap.

-Boo
Group,

Is there anyway to create a tag on a Web.UI.Control?

Lets say the label, can i add a Tag (property) like Common Form
Controls have.

How does rending work? would i be able to use that to over ride the
property and add a custom tag?

I would like to add the tag so i can include the parameters on the
particular tag... so when i call a parameter SQL statement... i can
use the loop or do condition untill it finds the parameter value for
that particular control by using the tag string (parsing it or
tag.contain(strSearch))

Any help or point me to the right direction would be greatly
appreciated.

Thanks in advance.

Ros


Jul 13 '06 #3
Ros
Boo,
Thanks for your help... i got what you mean by create new property. i did
not realize the attribute method has an add function.

Thanks again.

Ros

"GhostInAK" wrote:
Hello Ros,

Overriding .Tag is NOT a good idea. People expect .Tag to be under their
control.. not the control's control. Create a new property to hold your
crap.

-Boo
Group,

Is there anyway to create a tag on a Web.UI.Control?

Lets say the label, can i add a Tag (property) like Common Form
Controls have.

How does rending work? would i be able to use that to over ride the
property and add a custom tag?

I would like to add the tag so i can include the parameters on the
particular tag... so when i call a parameter SQL statement... i can
use the loop or do condition untill it finds the parameter value for
that particular control by using the tag string (parsing it or
tag.contain(strSearch))

Any help or point me to the right direction would be greatly
appreciated.

Thanks in advance.

Ros


Jul 13 '06 #4

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

Similar topics

7
by: Sens Fan Happy In OH | last post by:
I'm having majour issues with FrontPage 2K and a webpage that I am having to create from scratch based on someone else's prior work. I hope someone can look at the source code for the page in...
2
by: Regnab | last post by:
I've got a YES/NO section of a report I'm making. Depending on certain values, I want to circle either YES or NO. I've got the code working so it'll show or hide the circle, but I can't seem to get...
5
by: john | last post by:
I searched http://www.sellsbrothers.com. and could not find anything about this subject. How do I make C# User Controls Visible to Visual Basic 6.0 Applications? Thanks, John
2
by: TT (Tom Tempelaere) | last post by:
Hi everyone, I'm making an application that edits the configuration files of our software package. One of those things in the configuration files is configuration of heads. These heads form a...
3
by: Concorde7224 | last post by:
Hi, I am using Microsot Web Browser control in a VC++ (.net) desktop application (Windows forms application). How do I make this control transparent so that if I have any other control like...
2
by: Dennis | last post by:
I have a control that inheirts from "Panel". I want to prevent the user from having access to the MoueUp event. I tried making a sub in my control that handles MyBase.MouseUp but still this event...
351
by: CBFalconer | last post by:
We often find hidden, and totally unnecessary, assumptions being made in code. The following leans heavily on one particular example, which happens to be in C. However similar things can (and...
12
by: Premal | last post by:
Hi, I tried to make delete operator private for my class. Strangely it is giving me error if I compile that code in VC++.NET. But it compiles successfully on VC++6.o. Can anybody give me inputs...
0
Shashi Sadasivan
by: Shashi Sadasivan | last post by:
Hi, I am creating a user control (.net 2.0, c#, win forms) with a progress bar, a timer, and 2 buttons. I have made indivdual properties so that the time can be enabled and to set its time...
50
by: Juha Nieminen | last post by:
I asked a long time ago in this group how to make a smart pointer which works with incomplete types. I got this answer (only relevant parts included): ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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
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...

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.