Pages

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/

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