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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
regisdanielCommented:
Are you using AJAX?
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

tantormediaAuthor Commented:
Yes, I do. I use Ajax modal popup extender.
0
aternexCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
masterpassCommented:
tantormedia,

wrap the contents of the modal popup in an update panel and you will be set to go ...
0
tantormediaAuthor Commented:
Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.