Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 11, 2010 01:56 PM by raghav_khunger
Oct 11, 2010 12:18 PM|LINK
i am using light box in one of my asp.net website
On a linkbutton click, an application form opens in a lightbox. this form contains a dropdownlist.
till now it was working fine. but now i have to change some coding.
Whenever a value is selected from that dropdownlist, its selectedindexchanged is fired. At this moment my form with light box gets disapper.
what i want is, it should remain on screen as it is when any of the server side event is fired.
is it possible ?
Oct 11, 2010 01:27 PM|LINK
The easiest solution that comes to mind would be to put the dropdownlist in an Update Panel so that it does an AJAX call when the value is changed. This should prevent the lightbox from disappearing.
Oct 11, 2010 01:56 PM|LINK
You need to send an ajax request ($.ajax) to the server . The way you are doing won't work as the page does the postback and the new request will be made.