Making Tag with Web.UI.Control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ros

    #1

    Making Tag with Web.UI.Control

    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(str Search))

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


    Thanks in advance.



    Ros


  • GhostInAK

    #2
    Re: Making Tag with Web.UI.Control

    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(str Search))
    >
    Any help or point me to the right direction would be greatly
    appreciated.
    >
    Thanks in advance.
    >
    Ros
    >

    Comment

    • Ros

      #3
      Re: Making Tag with Web.UI.Control

      Boo,

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

      AttributeTarget s.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(str Search))

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

      Thanks in advance.

      Ros
      >
      >
      >

      Comment

      • Ros

        #4
        Re: Making Tag with Web.UI.Control

        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(str Search))

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

        Thanks in advance.

        Ros
        >
        >
        >

        Comment

        Working...