The id is known, one can set the id on the master page, content place holder
controls, etc. The pattern is always the same. I know what the final
rendered id value will be and can set the proper css/javascript selectors
properly ahead of time.
My problem is simply not having total control of the rendered id attributes
and the verbosity of the rendered values.
"Brock Allen" <> wrote in message
news: .com...
> The problem is that you don't know what some other control will emit for
> an ID. I imagine what your problem is is that you want to hard code the ID
> in your javascript to a well known value. Instead of hard coding, the
approach
> is to dynamically emit your javascript with the proper ID using the
Control.ClientID
> property.
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
> > Is there a way to prevent the INamingContainer behaviour that prefixes
> > the id of server controls in master pages with the format [master page
> > id]_[content id]_. I would prefer to manage the potential id
> > attribute conflicts myself, rather than having such verbose id
> > attributes throughout my site.
> >
> > Thanks,
> > ~PJ
>
>