Calendar demo

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

<script runat="server">

    protected override void OnLoad(EventArgs e) {
        base.OnLoad(e);
        string schema = Request["schema"];
        if (!string.IsNullOrEmpty(schema)) {
            SchedulerColorsSchema scs = (SchedulerColorsSchema)
              Enum.Parse(typeof(SchedulerColorsSchema), schema);
            Sch.LoadColorsSchema(scs);
        }
    } 

</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Scheduler printing demo</title>
</head>
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" onload="print();"
    onafterprint="history.back();">
    <form id="form1" runat="server">
        <div>
            <gos:Scheduler ID="Sch" runat="server" Width="100%" BackColor="WhiteSmoke" Caption="Printing demo"
                Font-Names="Verdana" Font-Size="Small" FreeDateColor="LightCoral" FreeTimeColor="Khaki"
                HorizontalHeaderLine="1px Black Solid" HorizontalLine="1px Silver Solid" VerticalLine0="2px Silver Solid"
                VerticalLine1="1px Silver Solid" VerticalResourceLine="1px Silver Solid" LinkLine="1px Black Solid"
                BehaviorOptions="None" ViewOptions="Default, InvisibleVerticalScrollBar, InvisibleHorizontalScrollBar">
                <Columns>
                    <gos:ResourceColumn Text="Caption">
                    </gos:ResourceColumn>
                </Columns>
                <BodyStyle BackColor="LemonChiffon">
                </BodyStyle>
                <TimeLineStyle Font-Size="X-Small" ResourceImage="Gray">
                </TimeLineStyle>
                <CaptionStyle HorizontalAlign="Center" ResourceImage="Blue">
                </CaptionStyle>
                <ResourceListStyle BackColor="Snow">
                </ResourceListStyle>
                <ResourceHeaderStyle BackColor="213, 225, 255">
                </ResourceHeaderStyle>
                <NextButton Visible="False">
                </NextButton>
                <PreviousButton Visible="False">
                </PreviousButton>
            </gos:Scheduler>
        </div>
    </form>
</body>
</html>

(C) ComponentGo! 2010 | Home | Site map | Partners | Links | Forum | info@componentgo.com