skip to content »

Ajax reorderlist not updating

Which has to get to the server, get deserialized and processed and then get returned from the server for ASP. A faster server might help a bit, but there is a reason that serious, web 2.0 ajaxy stuff isn't done using ASP. Were you using a different method than this to see over 200K of data?What I found was that, even though I'm passing the same amount of data in the AJAX request when reordering a sheet (local vs prod), the total time to receive the response was .434 seconds locally, but 6.25 seconds on the production server.

ajax reorderlist not updating-71

On my local machine I can go as fast as I want and never run into an issue.I am using the Reorder List control from the AJAX Control Toolkit on my fantasy cheat sheet creation site. It appears I am running into some concurrency issues if I try to reorder records too quickly.Obviously something is getting locked-up if I reorder quickly and all is lost until a page reload.The reason whittling down the viewstate will likely help you is that reducing the amount of stuff in transit will always help, and you get to reduce server overhead of parsing / deserializing that and then sending the same payload down the wire.I would be very leery of trying to build some locking or threading mechanisim here -- ultimately the issue is it is a synchrnous app so it should be have synchronously.NET AJAX is not asynchronous, even if the javascript layer tries to behave that way. I took your advice and fired-up Fire Bug to look at the request times when issuing reordering AJAX requests.

Typically the killer is View State -- it looks like you are sending 200kb with each request. I use the 'Net' tab in Fire Bug and first cleared all request listings, then I reorder an item here, and I'm only seeing 375B of data being passed to the server.

Accordion Always Visible Control Animation Auto Complete Calendar Cascading Drop Down Collapsible Panel Confirm Button Drag Panel Drop Down Drop Shadow Dynamic Populate Filtered Text Box Hover Menu List Search Masked Edit Modal Popup Mutually Exclusive Check Box No Bot Numeric Up Down Paging Bulleted List Password Strength Popup Control Rating Reorder List Resizable Control Rounded Corners Slider Slide Show Tabs Text Box Watermark Toggle Button Update Panel Animation Validator Callout Release Notes Setup your environment Using a sample extender Creating a new extender Extender base class features Using Animations Animation Reference Automated Testing Cascading Drop Down with a Database Other neat stuff Dynamic Populate is a simple extender that replaces the contents of a control with the result of a web service or page method call.

The method call returns a string of HTML that is inserted as the children of the target element.

Reorder a few items slowly then reorder, reload the page, and you'll see they're saved.

Reorder a few items very quickly, reload the page, and you'll see that only the first request was processed.

I guess a first step could be to greatly reduce the View State on a test page (probably by removing the vast majority of sheet features) to see if this alleviates the issue.