|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Making Tag with Web.UI.ControlIs 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 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 Show quoteHide quote > 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 > 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 Show quoteHide quote "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 > > > > > 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 Show quoteHide quote "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 > > > > >
Reading one record from an Access DB
Inherited form problem Function 'GetData' doesn't return a value on all code paths... Threading and Scope Dynamically created checkboxes within a panel - how do i get the value? dataser design considerations converting short to unicode without System.Text.UnicodeEncoding how to: contents of cd Image access problem Can I write and read a STRUCTURE to a file or to a Database??? |
|||||||||||||||||||||||