Ignore multiple post-back requests from ajax extender controls
Posted on 2009-02-23
I have an asp.net page where i have used ajax extenders for cosmetic purposes. The page draws a table after querying a sql back-end for data so there is about a 2 or 3 second delay while the page is served after the click event.
What happens is that the ajax controls (which are set to auto-post back) send the quest to the server, but if the user gets impatient and clicks the control twice, it looks like all additional requests are also sent to the server then when the page is re-drawn, there are two versions of the table being drawn. The code to draw the table is fired based on the selected index changed or checkchanged events of controls with ajax extenders.
So my question is - how can i accept the post-back of the first control then ignore any additional clicks until the page is served back to the client?