On page 71 on the RadControlsAJAXCourseware.pdf, it introduces the ClientID and ID properties. I need more understanding on this. I understand the ID property of a control, but somehow the info on this page is a little confusing to me. Now, I noticed that this topic must be a challenging one because further down the page, a blog is listed offering more information. I'm reading the blog, but I'm still unclear as it speaks about NamingContainer (which I assume is Namespace) and other info that I'm not quite looking for right now.
To simply ask, could you tell me exactly what this means (bolded text)?
In some cases, "RadMenu1" will be present, but $find("RadMenu1") will return null. A safer way to find your
RadControl is to use a server tag to output the control ClientID to the $find() method. We leave it up to the
RadControl to figure out the correct ClientID in case the control is nested within a master page or user
control and the ClientID wouldn't be what we expect:
ID and ClientID
ID property of a control identifies an ASP.NET server control. The ID is only unique within
the current NamingContainer (page, user control, item template).
ClientID property is unique within the entire page. The ClientID will be rendered with the
container control, an underscore
and the control ID. If "RadMenu1" is located directly on the
page the two properties would be:
If "RadMenu1" is located in a user control "WebUserControl1", the properties are: