Advertisement
HenX

ASP.Net

Dec 20th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.94 KB | None | 0 0
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="NoPostback.Default" %>
  2.  
  3. <!DOCTYPE html>
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head runat="server">
  7.     <title></title>
  8. </head>
  9. <body>
  10.     <form id="form1" runat="server">
  11.     <div>
  12.         <asp:Label runat="server" ID="outputLabel" ></asp:Label><br />
  13.         <asp:ScriptManager runat="server" ID="sm1"></asp:ScriptManager>
  14.         <asp:Timer runat="server" Interval="5000" ID="RefreshTimer" OnTick="RefreshTimer_Tick"></asp:Timer>
  15.         <asp:UpdatePanel runat="server">
  16.             <Triggers>
  17.                 <asp:AsyncPostBackTrigger ControlID="RefreshTimer" EventName="Tick" />
  18.             </Triggers>
  19.             <ContentTemplate>                                
  20.                 <asp:GridView runat="server" ID="testgrid"></asp:GridView>
  21.             </ContentTemplate>
  22.         </asp:UpdatePanel>    
  23.     </div>
  24.     </form>
  25. </body>
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement