Basic Date Picker Documentation

BasicDatePicker.NullDateText Property

Gets or sets the text displayed when NullDate(DateTime.MinValue) is supplied. Value can be applied to TextBox, Label, HyperLink and Button.

[Visual Basic]
Public Property NullDateText As String
[C#]
public string NullDateText {get; set;}

Property Value

The default value is String.Empty.

Example

[Visual Basic, C#] The following example demonstrates how to use the NullDateText property to set the intial value of the TextBox.

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

See Also

BasicDatePicker Class | BasicFrame.WebControls Namespace | IsNull