Click here to Skip to main content
15,880,608 members
Articles / Web Development / ASP.NET

Web Timer Control

Rate me:
Please Sign up or sign in to vote.
4.00/5 (11 votes)
7 Oct 2008GPL33 min read 58.7K   1.4K   38  
Provides a mechanism for executing a method at specified intervals
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body style="background-color:#f3f3f2;font-family:Tahoma">
    <form id="form1" runat="server">
    <div>
      <h1>Web Timer Control</h1>
    <table width="80%" style="margin:auto;background-color:white;">
    
    <tr><td width="30%" valign="top">
        <asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="Medium" ForeColor="#990000" StaticSubMenuIndent="10px">
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DynamicHoverStyle BackColor="#990000" ForeColor="White" />
            <DynamicMenuStyle BackColor="#FFFBD6" />
            <StaticSelectedStyle BackColor="#FFCC66" />
            <DynamicSelectedStyle BackColor="#FFCC66" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <Items>
                <asp:MenuItem NavigateUrl="~/PostBackOnTimeOut.aspx" Text="PostBack On TimeOUt" Value="PostBack On TimeOUt">
                </asp:MenuItem>
                <asp:MenuItem NavigateUrl="~/SyncTimeWithServer.aspx" Text="Sync Clock With Server"
                    Value="Sync Clock With Server"></asp:MenuItem>
                <asp:MenuItem NavigateUrl="~/ManualStart.aspx" Text="Manual Start" Value="Manual Start">
                </asp:MenuItem>
            </Items>
            <StaticHoverStyle BackColor="#990000" ForeColor="White" />
        </asp:Menu>
    
    </td><td width="70%" valign="top">
  
    <div style="min-height:500px;">
        <asp:contentplaceholder id="ContentPlaceHolder1" runat="server" >
        </asp:contentplaceholder></div>
    </td></tr></table>
    </div>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
United States United States

Comments and Discussions