Oct 10, 2008, 5:50 PM
AjaxEvent Performance
What affects the performance of an AjaxEvent? I have a simple page with one button and one label. On button click, it updates the label from server side via AjaxEvent. Very very fast. I have another more complex page with a grid and a label. On grid row select, it updates the label from server side via AjaxEvent. Much slower than simple page. Is the performance hit from loading the page's controls tree? I disabled viewstate for both pages. I am not rebinding the grid on ajax request either. If I change from AjaxEvent to WebService, the performance is about the same in both.
I am still debating whether to use AjaxEvent or WebService for my application. WebService requires a lot of manual hookup while AjaxEvent is relatively easy to implement. However, I have pages with LOTS of stuff on it. I want to know exactly how that will impact AjaxEvent performance.
Note: I mention grid's AjaxEvent is much slower but this is a relative comparison with the simple page. It's still MUCH MUCH faster than using UpdatePanel or Postback.
I am still debating whether to use AjaxEvent or WebService for my application. WebService requires a lot of manual hookup while AjaxEvent is relatively easy to implement. However, I have pages with LOTS of stuff on it. I want to know exactly how that will impact AjaxEvent performance.
Note: I mention grid's AjaxEvent is much slower but this is a relative comparison with the simple page. It's still MUCH MUCH faster than using UpdatePanel or Postback.