Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi i used two popup in javascript and ajax form but dropdown is making problem...once i click on dropdownlist it will postback and its not dispaly again pop window...i have 5 dropdown list in popup window...if there is any easy method plz help me....because i already used 2 popup. ...modalpopup extender and using javasript i tried....



hope anybody will help....
Posted
Updated 10-Oct-12 22:38pm
v6
Comments
Herman<T>.Instance 10-Oct-12 11:04am    
You NEED the .Show() method. Your DropDownList is a PostBack and AJAX closes the popup on Postback
ANOOP CL NAIR 11-Oct-12 9:30am    
Already i tried...when i click on first dropdown...it will close the window and after it will open ...its not looking good because window is jumping down to up....below code i wrote in load page and inside dropdown list..

ModalPopupExtender1.Show();


if there is any another solution can u please explain it?
Sergey Alexandrovich Kryukov 10-Oct-12 12:24pm    
Why doing popups? Popup is evil. Many customers are annoyed by them and will suppress showing popups using browser features/plug-ins designed for this purpose. There are some alternatives, very reasonable ones.
--SA

1 solution

Please see my comment where I explain why not using popup. For a really good alternative, you can use one of jQuery plug-in solution. Isn't the "modal window" feature referenced below reasonable enough? Please see:

http://www.queness.com/post/77/simple-jquery-modal-window-tutorial[^].

Locate and click "See the Demo" areas to see how it works. There are many other controls.

If you need to learn jQuery, please see:
http://en.wikipedia.org/wiki/JQuery[^],
http://jquery.com/[^],
http://docs.jquery.com/Tutorials[^],
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery[^],
http://docs.jquery.com/Tutorials:How_jQuery_Works[^].

—SA
 
Share this answer
 
Comments
ANOOP CL NAIR 10-Oct-12 22:32pm    
Thank you for your reply dude.....
Sergey Alexandrovich Kryukov 10-Oct-12 22:43pm    
Sure.
--SA
ANOOP CL NAIR 11-Oct-12 2:52am    
hi i used below code ....but again when i click on dropdownlist ...popup is closing the window....hope u will help..

[I removed the code as irrelevant -- SA]

.....
Sergey Alexandrovich Kryukov 11-Oct-12 11:41am    
What's the purpose of this code, if you did not show a single script? Use jQuery dialog or a modal window and be happy.
--SA
ANOOP CL NAIR 11-Oct-12 13:02pm    
u r really great brother....In my company there is no experience person...so i dont know how to do...but u give me good example ...its very very nice.....I AM TRYING TO SOLVE MY PROBLEM...IF i have ANY PROBLEM I WILL ASK U.....ONCE AGAIN THANK U BROTHER....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900