JEYAGANESH

JEYAGANESH
Software Developer

Saturday, 16 June 2012

Open/Close or Show/Hide Ajax Modalpopupextender using JavaScript in asp.net


In previous posts I explained some of the samples relating to Ajax modalpopupextender. During the time whenever I worked on to prepare samples for Ajax modalpopupextender I got requirement like close the modalpopupextender whenever I click on close icon for that more check this example Ajax Confirmation box. Generally in Ajax modalpopupextender we will set two properties TargetControlID and CancelControlID like Ex: TargetControlID="btnShowPopup" CancelControlID="btnNo" Here whenever we click on btnShowPopup button control modalpopupextender will show popup and when we click on btnNo button it will close the popup. Now I want to open popup and close popup whenever click on other button controls also in that case what we can do? By using JavaScript $find() function we can show or hide modalpopupextender easily. JavaScript Functions will be like this Here 'ModalPopupExtender1' is our modalpopupextender id. Our Sample Page will be like this Untitled Page

No comments:

Post a Comment