How to avoid closing Modal Popup

Hi,
I use a Modal Popup dialog. I have a button it it. Upon pressing it, I want to move a selected item from a source listbox into the destination listbox. When I press the button, the popup closes. How can I avoid submitting and thus closing the popup?

Thanks.
tantormediaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
aternexConnect With a Mentor Commented:
When I was doing this I had the button click raise an event PopupClosing() and the calling page listened for that event and called the modalpopupextender.show() method. This worked for me, though far from the most efficient... I am sure.
 
0
 
HyperBPPCommented:
Rather difficult without seeing any code.

You can make another button to do what you need, or change the code behind your current button.
0
 
tantormediaAuthor Commented:
Well, the code is simple. There is a button on modal popup, and a handler does some work on clicking that button. When the button is clicked, the page is submitted, and the popup disappears. I want it to stay.
It is not clear to me how adding another button will help. Wouldn't it cause page submitting also?
And how should I change the code behind the button to avoid submitting the page?

Thanks.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
regisdanielCommented:
Are you using AJAX?
0
 
tantormediaAuthor Commented:
Yes, I do. I use Ajax modal popup extender.
0
 
masterpassConnect With a Mentor Commented:
tantormedia,

wrap the contents of the modal popup in an update panel and you will be set to go ...
0
 
tantormediaAuthor Commented:
Thanks.
0
All Courses

From novice to tech pro — start learning today.