Calling ClientID of a control on load causes all client side IDs to be not unique...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbmccormick
    New Member
    • Feb 2008
    • 21

    #1

    Calling ClientID of a control on load causes all client side IDs to be not unique...

    I'm having a problem where whenever I try to get the ClientID of a control on page load, all of the client side IDs turn into "Label1" or "TextBox1" rather than "ctl12_Labe l1" or "ctl3_TextBox1" . Now if I comment out the line that calls "this.Label1.Cl ientID" then I have no problems...

    Any ideas? Your help is appreciated...
    Last edited by DrBunchman; May 29 '08, 11:04 AM. Reason: Moved to .NET Forum - ASP Forum for Classic ASP only
Working...