Version

Setting Prompt Character for WebDatePicker

WebDatePicker™ 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:

WebDatePicker1.PromptChar = "*"c

In C#:

WebDatePicker1.PromptChar = '*';
WebDatePicker Setting Prompt Character for WebDatePicker 01.png