I've got a very large listbox that gets populated using ajax. The listbox
and a button are in a panel inside an update panel. The button click of the
button sets the panel visible property to false. Everything works nice and
snappy except for when I click the button. The panel takes about 20 or so
seconds to dissapear. I think the ajax call has been made and the browser
is executing some javascript synchronously because the browser is blocking
and doesn't responde for those 20 or so seconds. My guess is the
javascriptis part of the ajax stuff because I didn't write any special
javascript to execute when the button is clicked. Does anybody know what
could be going on and how I can get rid of this slow response?
Teemu Keiski - 30 Jul 2007 19:00 GMT
Hi,
I think it's because with UpdatePanel the ViewState is posted also to the
server, so it's suffering because of that. How large us the ListBox, how
many items does it have? If you don't use UpdatePanel how long does it take
to make a full postback, does it also take that 20 seconds or more?

Signature
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
> I've got a very large listbox that gets populated using ajax. The listbox
> and a button are in a panel inside an update panel. The button click of
[quoted text clipped - 6 lines]
> javascript to execute when the button is clicked. Does anybody know what
> could be going on and how I can get rid of this slow response?
Steve C. Orr [MCSD, MVP, CSM, ASP Insider] - 30 Jul 2007 22:14 GMT
You might try making the panel invisible via JavaScript instead.
Something along these lines should do the trick:
MyPanel.style.display='none';

Signature
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
> I've got a very large listbox that gets populated using ajax. The listbox
> and a button are in a panel inside an update panel. The button click of
[quoted text clipped - 6 lines]
> javascript to execute when the button is clicked. Does anybody know what
> could be going on and how I can get rid of this slow response?