Ajax ModalPopup extender not closing

C

Carlos

Hi,

I just built a page which references a panel to popup using
an Ajax modalpopup extender control. The problem that I have
has to do with the Cancel button. When pressed it does not close the
popup. I have tried to just define the CancelControlID property without
the OnCancelScript property, and it does not close it.

Can someone help?

Thanks,

Carlos.
 
C

Carlos

Hi again,

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();

}
 
C

Carlos

Thank you so much for the clarification Mark.
Where can I go to find the theoretical background about this?

Thanks again!

Carlos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top