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
  1. Home
  2. Web Development
  3. ASP.NET
  4. ctl Prefix in ClientID

ctl Prefix in ClientID

Scheduled Pinned Locked Moved ASP.NET
help
6 Posts 2 Posters 0 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
    Ali Al Omairi Abu AlHassan
    wrote on last edited by
    #1

    guys; I have a drop down in an aspx page, its rendered with an uniqueid (name) that begins with 'ctl' but with a ClientID(id) that doesn't begin with that prefix. any body knows why.

    Help people,so poeple can help you.

    Kornfeld Eliyahu PeterK 1 Reply Last reply
    0
    • A Ali Al Omairi Abu AlHassan

      guys; I have a drop down in an aspx page, its rendered with an uniqueid (name) that begins with 'ctl' but with a ClientID(id) that doesn't begin with that prefix. any body knows why.

      Help people,so poeple can help you.

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #2

      ASP.NET rendering engine creates all id attributes to ensure that your page comforts with HTML standard (unique id). Read here some explanations about it: http://msdn.microsoft.com/en-us/library/vstudio/1d04y8ss(v=vs.100).aspx[^] Also notice, that you can control (to a certain level) how those ids are generated...

      I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      A 1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        ASP.NET rendering engine creates all id attributes to ensure that your page comforts with HTML standard (unique id). Read here some explanations about it: http://msdn.microsoft.com/en-us/library/vstudio/1d04y8ss(v=vs.100).aspx[^] Also notice, that you can control (to a certain level) how those ids are generated...

        I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

        A Offline
        A Offline
        Ali Al Omairi Abu AlHassan
        wrote on last edited by
        #3

        Sir; Thank you for your reply,But it was simpler than that. I just associated the deployed version with an application pool that uses 4.0 framework. And when I changed it to 2.0, every thing worked normally.

        Help people,so poeple can help you.

        Kornfeld Eliyahu PeterK 1 Reply Last reply
        0
        • A Ali Al Omairi Abu AlHassan

          Sir; Thank you for your reply,But it was simpler than that. I just associated the deployed version with an application pool that uses 4.0 framework. And when I changed it to 2.0, every thing worked normally.

          Help people,so poeple can help you.

          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu Peter
          wrote on last edited by
          #4

          I'm glad you found a solution! Now I suggest you go and learn the differences between ASP.NET 2.0 and 4.x regarding id generation in web pages - it is important!

          I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

          A 1 Reply Last reply
          0
          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

            I'm glad you found a solution! Now I suggest you go and learn the differences between ASP.NET 2.0 and 4.x regarding id generation in web pages - it is important!

            I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

            A Offline
            A Offline
            Ali Al Omairi Abu AlHassan
            wrote on last edited by
            #5

            Yes, because if you left the ClientID Mode not set it would take the default value from the application bool which is predicable by default which can make some confusion

            Help people,so poeple can help you.

            Kornfeld Eliyahu PeterK 1 Reply Last reply
            0
            • A Ali Al Omairi Abu AlHassan

              Yes, because if you left the ClientID Mode not set it would take the default value from the application bool which is predicable by default which can make some confusion

              Help people,so poeple can help you.

              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu Peter
              wrote on last edited by
              #6

              Nice! And that because All-Mighty-Microsoft decided to change default behavior...Hallelujah!

              I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

              "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

              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