Posted on Apr 5, 2007
(permalink)
This approach is good, the only thing I believe will not work is using a static function (MyFunction in this case), since it will be overwritten for each user control The anonymous functions method originally used by Lars in addition to addEventListener / attachEvent will work.
if(typeof window.addEventListener != 'undefined')
{
window.addEventListener('load', function() { setTimeout( function(){
window[ "<%= radAjaxPanel.ClientID %>"].AjaxRequest("doSearch");
}, 100); } , false);
}
else if(typeof window.attachEvent != 'undefined')
{
window.attachEvent('onload', function() { setTimeout( function(){
window[ "<%= radAjaxPanel.ClientID %>"].AjaxRequest("doSearch");
}, 100); } );
}