Basic Date Picker Documentation

BasicDatePicker.Enabled Property

Gets or sets a value indicating whether the BasicDatePicker is enabled. if Enabled = false, TextBox readonly attribute will be set to readonly and Image Button will be set to Disabled.

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

Property Value

Default value is true, which indicated that the date picker will be enabled.

Example

[Visual Basic, C#] The following example demonstrates how to use the Enabled property to disable the date picker.

[Visual Basic]
<%@ Page Language="VB" AutoEventWireup="true" %>
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<html>
 <head>
    <title>Basic Date Picker Enabled Example</title>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker Enabled Example</h3>
         <bdp:BasicDatePicker ID="BasicDatePicker1" Enabled="false" runat="server"></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 Enabled Example</title>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker Enabled Example</h3>
         <bdp:BasicDatePicker ID="BasicDatePicker1" Enabled="false" runat="server"></bdp:BasicDatePicker>
     </form>
 </body>
</html>

See Also

BasicDatePicker Class | BasicFrame.WebControls Namespace