I’m doing one app which requires AJAX call on almost every user interaction possible, I started writing JS functions, webservices etc. to handle all of that(still long way to go from here).
Now I am wondering If I made a mistake maybe I should put whole page in update panel because I really hate writting JS. Is there some drawback to use it instead of custom written ajax calls to web service and js functions, and is it better to use more update panels or one big?
The biggest advantage to writing your own is performance. Writing your own JS and webservices is going to be much, much faster.
Microsoft’s AJAX UpdatePanels actually re-render the entire page, but then only replace the sections of data that you surrounded with the UpdatePanel tags. When you write your own, you can fully control what happens and when. And if you ever migrate or port your code away from ASP.NET, it’s going to be much more reusable.