Click here to Skip to main content
15,885,890 members
Articles / Web Development / HTML

DayPilot - Building an Outlook-Like Calendar Component for ASP.NET

Rate me:
Please Sign up or sign in to vote.
4.86/5 (120 votes)
8 May 2016Apache5 min read 474.7K   9K   391  
A good-looking ASP.NET control that shows events visually arranged in a day calendar. Includes design-time support and data binding.
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Demo.master.cs" Inherits="Demo" %>
<!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></title>
    <link href="demo.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <h1 style="margin: 0px">
            <a href="http://www.daypilot.org/daypilot-lite.html">DayPilot Lite</a> Demo</h1>
        <div>Open-source Outlook-like calendar/scheduling control for ASP.NET 2.0+</div>
        <div style="margin-top:20px"></div>        
        
    <table cellspacing="0" cellpadding="0" border="0"> 
        <tr>
            <td style="width:120px;"></td>
            <td style="width:120px; height:35px; background-color:#C3D9FF;text-align: center;"><div style="padding:2px;">DayPilot Lite</div></td>
            <td style="width:10px;"></td>
            <td style="width:120px; height:35px; border-top: 1px solid #C3D9FF; border-left: 1px solid #C3D9FF; border-right: 1px solid #C3D9FF; text-align: center;"><div style="padding:2px;"><a href="http://www.daypilot.org/demo/">DayPilot <span style="font-weight:bold;">Pro</span></a></div></td>
        </tr>
    </table>
        
        
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td valign="top" style="width: 120px">
                    <asp:Repeater ID="Repeater1" runat="server" DataSource="<%# ItemList %>">
                        <ItemTemplate>
                            <asp:PlaceHolder ID="PlaceHolder3" runat="server" Visible='<%# DataBinder.Eval(Container, "DataItem.url") != DBNull.Value %>'>
                                <div>
                                    <a href='<%# DataBinder.Eval(Container, "DataItem.url")%>' class='<%# DataBinder.Eval(Container, "DataItem.class")%>'>
                                        <%# DataBinder.Eval(Container, "DataItem.title")%>
                                    </a>
                                </div>
                            </asp:PlaceHolder>
                            <asp:PlaceHolder ID="PlaceHolder4" runat="server" Visible='<%# DataBinder.Eval(Container, "DataItem.url") ==  DBNull.Value %>'>
                                <div class="MenuHeader">
                                    <%# DataBinder.Eval(Container, "DataItem.title")%>
                                </div>
                            </asp:PlaceHolder>
                        </ItemTemplate>
                    </asp:Repeater>
                </td>
                <td class="content" valign="top">
                    <div>
                        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                        </asp:ContentPlaceHolder>
                    </div>
                </td>
            </tr>
        </table>
    </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 Apache License, Version 2.0


Written By
Czech Republic Czech Republic
My open-source event calendar/scheduling web UI components:

DayPilot for JavaScript, Angular, React and Vue

Comments and Discussions