Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Ajax & Large Listbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeremy - 30 Jul 2007 17:05 GMT
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?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.