Friday, April 15, 2011

jQuery jQuery $(document).ready with UpdatePanel problem

Every time an UpdatePanel fires a partial page update, JQuery does not work any more.

Cause:
An UpdatePanel replaces the contents of the update panel on an update.
So Jquery event handlers are gone, because elememnts gone first.

Solution:
Put event handlers from $(document).ready()  to

var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function() {
    // re-bind your jquery events here
});


Reference:
http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/

Bing Maps AJAX Control version 7 manual

Bing Maps AJAX Control version 7 manual
MSDN
http://msdn.microsoft.com/en-us/library/gg427609.aspx

PDF
https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B06qH8BYe9W8NjNjMTFmYjYtMmYyMi00OGU1LWE3MTAtMDYzNmUwYTBiOWYy&hl=en

Copy and Paste to learn Bing Maps from Bing Maps Interactive SDK

But source code is v6.3
The namespace and class name in the latest v7.0 has been changed a lot
http://www.microsoft.com/maps/isdk/ajax/

How to Optimize your site for SEO in ASP.NET

Optimizing your site for SEO in ASP.NET

- Two new properties, MetaKeywords and MetaDescription, of the Page class
- New URL Routing support towards ASP.NET Web Forms
- New Response.RedirectPermanent() method