tantormedia
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.
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.
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.
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?
ASKER
Yes, I do. I use Ajax modal popup extender.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
You can make another button to do what you need, or change the code behind your current button.