Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Generate label

Generate label

Scheduled Pinned Locked Moved ASP.NET
sysadminquestion
8 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ake_krakbar
    wrote on last edited by
    #1

    Is there any server control that outputs as a element? -- modified at 9:42 Tuesday 21st February, 2006

    M G 2 Replies Last reply
    0
    • A ake_krakbar

      Is there any server control that outputs as a element? -- modified at 9:42 Tuesday 21st February, 2006

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Every server control outputs HTML elements.

      A 1 Reply Last reply
      0
      • M Mike Ellison

        Every server control outputs HTML elements.

        A Offline
        A Offline
        ake_krakbar
        wrote on last edited by
        #3

        oups. The forum deleted my html code. It should read "outputs as a element"... -- modified at 9:44 Tuesday 21st February, 2006

        M 1 Reply Last reply
        0
        • A ake_krakbar

          oups. The forum deleted my html code. It should read "outputs as a element"... -- modified at 9:44 Tuesday 21st February, 2006

          M Offline
          M Offline
          Mike Ellison
          wrote on last edited by
          #4

          Oh... I thought CheckBoxLists and RadioButtonLists output <label> elements - is that not the case?

          A 1 Reply Last reply
          0
          • M Mike Ellison

            Oh... I thought CheckBoxLists and RadioButtonLists output <label> elements - is that not the case?

            A Offline
            A Offline
            ake_krakbar
            wrote on last edited by
            #5

            Yep they do, but i need the element for all my form elements, even the textbox. That way, when you click the the associated textbox recieves focus. Accessibility requirements from my customer...

            G 1 Reply Last reply
            0
            • A ake_krakbar

              Yep they do, but i need the element for all my form elements, even the textbox. That way, when you click the the associated textbox recieves focus. Accessibility requirements from my customer...

              G Offline
              G Offline
              gnjunge
              wrote on last edited by
              #6

              There is none. But it is very easy to create your own label control in .NET, I would go for that if I were you.

              1 Reply Last reply
              0
              • A ake_krakbar

                Is there any server control that outputs as a element? -- modified at 9:42 Tuesday 21st February, 2006

                G Offline
                G Offline
                gnjunge
                wrote on last edited by
                #7

                In .NET 2.0 you can actually set AssociatedControlID of a Label control to a certain control, and this will cause the Label to render as <label> in stead of <div>.

                A 1 Reply Last reply
                0
                • G gnjunge

                  In .NET 2.0 you can actually set AssociatedControlID of a Label control to a certain control, and this will cause the Label to render as <label> in stead of <div>.

                  A Offline
                  A Offline
                  ake_krakbar
                  wrote on last edited by
                  #8

                  Thats great! Thanks for your help

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups