1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="WeekNumbers.aspx.cs" Inherits="C1Calendar_WeekNumbers" Title="Untitled Page" %> <%@ Register Assembly="C1.Web.UI.Controls.2" Namespace="C1.Web.UI.Controls.C1Calendar" TagPrefix="cc1" %> <asp:Content ID="Content1" ContentPlaceHolderID="DescriptionPlaceHolder1" runat="Server"> Set the ShowWeekNumbers property to True to display week numbers. This feature is beneficial when the SelectionMode property is set to the WeekNumber property. </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> <div class="controlwrapper"> <cc1:C1Calendar ID="C1Calendar1" BorderColor="Black" runat="server" Height="170px" Width="200px" WeekDayFormat="FirstTwoLetters" AllowPreview="false" ShowWeekNumbers="true" VisualStyle="Vista" VisualStylePath="~/VisualStyles/"> </cc1:C1Calendar> </div> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ControlOptionsHolder1" runat="Server"> </asp:Content>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
using System; using System.Collections; using System.Configuration; using System.Data; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; public partial class C1Calendar_WeekNumbers : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }