Basic Date Picker Documentation

BasicDatePicker.ShowWeekNumbers Property

Gets or sets a value indicating whether the week numbers are displayed.

[Visual Basic]
Public Property ShowWeekNumbers As Boolean
[C#]
public bool ShowWeekNumbers {get; set;}

Property Value

Default value = false.

Remarks

Note   If the FirstDayOfWeek is not FirstDayOfWeek.Sunday then ShowWeekNumbers is forced to false. This is common, and will happen automatically when the culture's FirstDayOfWeek is a day other than Sunday.

Example

[Visual Basic, C#] The following example demonstrates how to use the ShowWeekNumbers property to display week numbers next to the calendar when opened.

[Visual Basic]
<%@ Page Language="VB" AutoEventWireup="true" %>
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<html>
 <head>
    <title>Basic Date Picker ShowWeekNumbers Example</title>
     <style>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker ShowWeekNumbers Example</h3>
         <bdp:BasicDatePicker 
             ID="BasicDatePicker1" 
             runat="server"
             ShowWeekNumbers="true">
         </bdp:BasicDatePicker>
     </form>
 </body>
</html>

[C#]
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<html>
 <head>
    <title>Basic Date Picker ShowWeekNumbers Example</title>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker ShowWeekNumbers Example</h3>
         <bdp:BasicDatePicker 
             ID="BasicDatePicker1" 
             runat="server"
             ShowWeekNumbers="true">
         </bdp:BasicDatePicker>
     </form>
 </body>
</html>

See Also

BasicDatePicker Class | BasicFrame.WebControls Namespace | FirstDayOfWeek