If there's any difference, it's negligible. Sys.Application will check for pageLoad in an attempt to call it after every partial postback, even if it doesn't exist anyway. Sort of like AutoEventWireup that you can't disable.
One nice thing about using pageLoad is that you can consolidate both initialization and re-initialization into that single function. With it, you won't need the $(document).ready() initialization. Using EndRequest, you'll still need to set prettyPhoto
up in $(document).ready too.
gt1329a
All-Star
15377 Points
2501 Posts
ASPInsiders
MVP
Re: UpdatePanel Problem. Javascript not firing after asyncronous postback
Sep 16, 2009 04:09 PM|LINK
If there's any difference, it's negligible. Sys.Application will check for pageLoad in an attempt to call it after every partial postback, even if it doesn't exist anyway. Sort of like AutoEventWireup that you can't disable.
One nice thing about using pageLoad is that you can consolidate both initialization and re-initialization into that single function. With it, you won't need the $(document).ready() initialization. Using EndRequest, you'll still need to set prettyPhoto up in $(document).ready too.
A guide to combining jQuery and ASP.NET: jQuery for the ASP.NET developer