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.
~ Remember To Mark The Post(s) That Helped You As The ANSWER ~
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.
vipulmistry
Member
2 Points
66 Posts
Light box and server events
Oct 11, 2010 12:18 PM|LINK
Hello frnds
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 ?
Regards
Vipul
robv8r
Participant
889 Points
138 Posts
Re: Light box and server events
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.
raghav_khung...
All-Star
32835 Points
5563 Posts
MVP
Re: Light box and server events
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.