2012年3月10日土曜日

Run Client Script after each ajax post back

Try to take a look at this blog?about?attching?client?script?-?http://www.nikhilk.net/AtlasScriptManager.aspx
Wish it helps you.

use this in your page (client side)

<script type="text/javascript" language="javascript">function PageLoading(sender, args){ alert("111");} Sys.WebForms.PageRequestManager.getInstance().add_pageLoading(PageLoading);</script>

When i use the pagerequestmanager add pageloading I get following error
Microsoft JScript runtime error: Object doesn't support this property or method
But I do not get that error while I use
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(PageLoading);

Any clue??

0 件のコメント:

コメントを投稿