SimpleExample3CS.aspx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <%@ Page Language="C#" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <script runat="server">
  5. </script>
  6. <html xmlns="http://www.w3.org/1999/xhtml" >
  7. <head runat="server">
  8. <title>Handling the pageLoaded Event</title>
  9. <style type="text/css">
  10. body {
  11. font-family: Tahoma;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <form id="form1" runat="server">
  17. <div>
  18. <asp:ScriptManager ID="ScriptManager1" runat="server" />
  19. <script type="text/javascript" language="Javascript">
  20. Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(PageLoaded);
  21. function PageLoaded(sender, args)
  22. {
  23. var updatedPanels = args.get_panelsUpdated();
  24. for (i=0; i < updatedPanels.length; i++)
  25. {
  26. // Call a custom animation and pass the DOM
  27. // element representing the panel which is
  28. // represented by updatedPanels[i]
  29. }
  30. }
  31. </script>
  32. </div>
  33. </form>
  34. </body>
  35. </html>