設定或傳回 CHTML 和 WML 裝置上用來輸入 Calendar 控制項的字串。
public string CalendarEntryText {
get,
set
}
備註
如果設定為 null,預設值是當地語系化字串 (例如 Calendar)。
範例
下列範例示範如何使用 CalendarEntryText 屬性設定向使用者顯示的文字。
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";
}