1
Working on a cool project, I’m using the ModalPopupExtender
of AjaxToolKit
.
I’ve identified if I can use the attributes OkControlID
and CancelControlID
to define which control, a Button
for example, close the modal.
<cc1:ModalPopupExtender ID="ModalPopupExtender1"
runat="server"
OkControlID="btnOkay"
CancelControlID="btnCancel">
</cc1:ModalPopupExtender>
What I would like to know is whether there is a possibility to close Modal by clicking outside the area of the Modal window that has been opened.
Is there an attribute or other code that allows you to do this?
Ricardo, if I’m not mistaken this library has been discontinued. I wouldn’t recommend its use, by own experience use Jquery!
– Marconi
True, but since it’s a legacy, I wouldn’t want to change much or replace code, just make an improvement
– Ricardo Pontual
Here’s a reply I think it might be just what you need.
– Marconi
@Marconi interesting, I’m going to do a test
– Ricardo Pontual