RadInput for ASP.NET AJAX

RadControls for ASP.NET AJAX

By default, all of the RadInput controls except RadMaskedTextBox display a blank input area when the value has not been set:

Empty Input control

RadMaskedTextBox displays its prompt character for each position the user should fill and any literal characters from the mask:

Empty RadMaskedTextBox

You can change this default appearance when the input control does not have focus to display any string you like. Set the string you want to display as the value of the EmptyMessage property. When the input control does not have focus, it displays the string you have set:

Empty message

Note

The empty message does not need to be a valid value for the input control. For example, you can use a string of text as the EmptyMessage property of a RadNumericTextBox, RadDateInput, or RadMaskedTextBox control.

Caution

RadMaskedTextBox does not display the value of its EmptyMessage property unless the HideOnBlur property is set to True.

Caution

When EnableSingleInputRendering="false" the RadTextBox is unable to show a readable EmptyMessage with TextMode="Password". It is recommended to use a Label instead of an EmptyMessage in this case.

Once you have set the EmptyMessage property to a non-empty string, you can use the EmptyMessageStyle property to change the display properties of the input control when the empty message is showing:

Empty message style