Thank you so much for the clarification Mark.
Where can I go to find the theoretical background about this?
Thanks again!
Carlos
"Mark Rae [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Carlos" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>> never mind, I just did not referenced the extender properly when
>> handling the event to close it when the cancel button was pressed.
>> I forgot that I had to include the master page prefix when locating the
>> control.
>> i.e.
>>
>> function onCancel() {
>>
>> var modal = $find('ctl00_Contentplaceholder2_ModalPopup');
>>
>> modal.hide();
>
> Do not UNDER ANY CIRCUMSTANCES do this. The munged element name is not
> guaranteed to be the same forever. Many things can cause it to change,
> which will break your code completely.
>
> Instead, do this: var modal = $find('<%=ModalPopup.ClientID%>');
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net