Link to home
Start Free TrialLog in
Avatar of tantormedia
tantormediaFlag for United States of America

asked on

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.
Avatar of HyperBPP
HyperBPP

Rather difficult without seeing any code.

You can make another button to do what you need, or change the code behind your current button.
Avatar of tantormedia

ASKER

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.
Are you using AJAX?
Yes, I do. I use Ajax modal popup extender.
ASKER CERTIFIED SOLUTION
Avatar of aternex
aternex
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.