Hi,

the way I do it is to use ClientID to change the JScript in the ASPX. I know
this is a little painful, but ASP.NET needs to change the ID in order by
able to use the control inside of other user controls for example.

So, instead of writing

if( MyControlID != null )
alert( MyControlID.Name )

you'd have to do

if( <%=thisControl.ClientID%> != null )
alert( <%=thisControl.ClientID%>.Name )

Then you need to do a DataBind on PageLoad for the page (Page.DataBind()).

Best regards,

Marc Höppner
NeoGeo

"Fernando Arámburu" <fernara@sol.info.unlp.edu.ar> wrote in message
news:uHVnGnUUDHA.2180@TK2MSFTNGP12.phx.gbl...
>
> Hi All,
> Is there any way for a Control within a UserControl to preserve the
> original ID once render is called?
> I´ve tried ClientID property but it doesnt work. I need to preserve the
> original one cause there´s some javascript code using it.
> Thank you
>
> Fer
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!