Version

Setting Prompt Character for WebDateTimeEditor

WebDateTimeEditor™ allows you to set the prompt character that is used to fill missing date fields when the control has focus by simply setting the control’s PromptChar property. By default the prompt character is set to '_'.

You can set the PromptChar property either by using the Microsoft® Visual Studio® Property Window or by using the following code:

In Visual Basic:

WebDateTimeEditor1.PromptChar = "*"c

In C#:

WebDateTimeEditor1.PromptChar = '*';

In JavaScript:

$find("WebDateTimeEditor").set_promptChar('$$*$$');
WebDateTimeEditor Setting Prompt Character for WebDateTimeEditor 01.png