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. UniqueID, ClientID

UniqueID, ClientID

Scheduled Pinned Locked Moved ASP.NET
questioncsharpdatabasetutorial
2 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.
  • L Offline
    L Offline
    lustuyck
    wrote on last edited by
    #1

    Hi, I'm working on a weblog control @ http://www.coders-lab.net/index.aspx?sm=myweblog[^] It works with a template, and in order to retrieve values on postback, I use the client id of the control. In case of an ASP:TextBox, this is UniqueID; but in case of the FreeTextBoxControl for example, it's ClientID. What is the difference between UniqueID and ClientID? Why do I have to use UniqueID of ASP:TextBox to get the client id, and ClientID to get the client id of the FreeTextBoxControl...?

    A 1 Reply Last reply
    0
    • L lustuyck

      Hi, I'm working on a weblog control @ http://www.coders-lab.net/index.aspx?sm=myweblog[^] It works with a template, and in order to retrieve values on postback, I use the client id of the control. In case of an ASP:TextBox, this is UniqueID; but in case of the FreeTextBoxControl for example, it's ClientID. What is the difference between UniqueID and ClientID? Why do I have to use UniqueID of ASP:TextBox to get the client id, and ClientID to get the client id of the FreeTextBoxControl...?

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      It's about how and when the page is rendered during the pages events, and when which id is made available, server then client. UniqueID — The hierarchically-qualified unique identifier assigned to a control by the ASP.NET page framework. ClientID — A unique identifier assigned to a control by the ASP.NET page framework and rendered as the HTML ID attribute on the client.

      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