Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > UniqueID vs ClientID

Reply
Thread Tools

UniqueID vs ClientID

 
 
Sam Samnah
Guest
Posts: n/a
 
      06-15-2005
Sorry if this seems like a simplestic question, but what is the difference
between "this.UniqueID" and "this.ClientID"? and when should either be used?

I am Sam I am.


 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      06-15-2005
this.UniqueID is the control's name appended with all naming containers,
think of it as the fully qualified control name. this.ClientID is the value
that will appear in the id attribute of the control, it is a translation of
the uniqueid to be a (well almost) html compliant id tag (leading
underscores are not really html compliant).

-- bruce (sqlwork.com)


"Sam Samnah" <> wrote in message
news:...
> Sorry if this seems like a simplestic question, but what is the difference
> between "this.UniqueID" and "this.ClientID"? and when should either be
> used?
>
> I am Sam I am.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UniqueID vs. ClientID Why are they Differenct? Ken Baltrinic ASP .Net 2 03-04-2005 06:36 PM
EnsureChildControls causes UniqueID to be incorrect inside UserControl Kepler ASP .Net 1 07-07-2004 12:16 PM
Difference between ID, ClientID and UniqueID? Henri ASP .Net 2 05-18-2004 12:18 AM
[ASP. NET VB .NET] clientID and ClientID Maras ASP .Net 1 10-15-2003 02:04 PM
Problem using .NET UniqueID to reference RadioButton in Javascript? David Whitney ASP .Net 1 07-21-2003 04:17 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57