default.aspx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. <html xmlns="http://www.w3.org/1999/xhtml" >
  5. <head id="Head1" runat="server">
  6. <title>UpdatePanel Animation Example</title>
  7. <style type="text/css">
  8. #UpdatePanel1 {
  9. width: 300px;
  10. height: 100px;
  11. border:solid 1px gray;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <form id="form1" runat="server">
  17. <div>
  18. <asp:ScriptManager ID="ScriptManager1" runat="server">
  19. <Scripts>
  20. <asp:ScriptReference Path="UpdatePanelAnimation.js" />
  21. </Scripts>
  22. </asp:ScriptManager>
  23. <asp:UpdatePanel ID="UpdatePanel1" runat="server">
  24. <ContentTemplate>
  25. <%=DateTime.Now.ToString() %>
  26. <asp:Button ID="AnimateButton1" runat="server" Text="Refresh with Animation" />
  27. <asp:Button ID="Button2" runat="server" Text="Refresh with no Animation" />
  28. </ContentTemplate>
  29. </asp:UpdatePanel>
  30. </div>
  31. </form>
  32. </body>
  33. </html>