Share via


CalendarEntryText Property

Sets or returns the string used on CHTML and WML devices to enter the Calendar control.

public string CalendarEntryText {
   get,
   set
}

Remarks

When set to null, the default is the localized string (for example, Calendar).

Example

The following example demonstrates how to use the CalendarEntryText property to set the text that is displayed to the user.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
   
   calendar1.VisibleDate = DateTime.Parse("9/16/2001")
   calendar1.CalendarEntryText = "your birthdate"

End Sub
[C#]
protected void Page_Load(Object sender, EventArgs e)
{
    calendar1.VisibleDate=DateTime.Parse("8/16/2001");
    calendar1.CalendarEntryText = "your birthdate";
}  

See Also

Calendar Class