Click here to Skip to main content
15,879,239 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 474K   9K   391  
A good-looking ASP.NET control that shows events visually arranged in a day calendar. Includes design-time support and data binding.
<%@ Page Language="C#" MasterPageFile="~/Demo.master" AutoEventWireup="true" CodeFile="HeaderDateFormat.aspx.cs" Inherits="HeaderDateFormat" Title="DayPilot Demo | Header date format" Culture="en-US" %>

<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
        <asp:ListItem Value="d">Short date (d)</asp:ListItem>
        <asp:ListItem Value="D">Long date (D)</asp:ListItem>
        <asp:ListItem Value="m">Month day (m)</asp:ListItem>
        <asp:ListItem Value="dddd">Custom (dddd)</asp:ListItem>
        <asp:ListItem Value="ddd">Custom (ddd)</asp:ListItem>
        <asp:ListItem Value="dd">Custom (dd)</asp:ListItem>
        <asp:ListItem Value="%d">Custom (%d)</asp:ListItem>
        <asp:ListItem Value="M/dd">Custom (M/dd)</asp:ListItem>
        <asp:ListItem Value="M/d">Custom (M/d)</asp:ListItem>
        <asp:ListItem Value="d MMMM yyyy">Custom (d MMMM yyyy)</asp:ListItem>
        <asp:ListItem Value="yyyy-MM-dd">Custom (yyyy-MM-dd)</asp:ListItem>
    </asp:DropDownList><br />
    <br />
    <daypilot:daypilotcalendar id="DayPilotCalendar1" runat="server" DataEndField="end" DataStartField="start" DataTextField="name" DataValueField="id" Width="100%"></daypilot:daypilotcalendar>
</asp:Content>

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