This is no different than in ASP.Net 1.0, the UniqueId or ClientId of a
control is based on the hierarchy the control is placed in.
Your control, CatId is added to a contentplaceholder which is part of a
master page.
Your masterpage is ctl00
your contentplaceholder is Main
and your control is CatId
However, I agree with you that CatId should be accessible from the Page as
simply "CatId" which it doesn't appear to be.
Have you looked through the feedback site for any similiar reports?
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Fabian" <fm@n-o-s-p-a-m.itacs.de> wrote in message
news:u8**************@TK2MSFTNGP12.phx.gbl...
Hi,
I work with MasterPages in ASP.NET 2.0.
In codebehind I create a dynamic control and with name "CatId". But after
the creation the name is changed to "ctl00$Main$CatId".
Therefore I canīt serach by the name of the control, but I need this.
What I must do, that this not take place?
Fabian