该控件的作用就是配合验证控件使用,以气球的形式弹出错误提示。
TargetControlID - The ID of the Validator to extend.(要添加扩展的验证控件的ID)
Width - The Width of the callout.()
CssClass - Name of the CSS used to style the ValidatorCallout.See the ValidatorCallOut Theming section for more information.(低版本中不存在该属性,该属性是该控件的核心)添加CssClass后如下图:
>>ValidatorCallout Css classes
ajax__validatorcallout_popup_table: The popup table.
ajax__validatorcallout_popup_table_row: The popup table row.ajax__validatorcallout_callout_cell: The callout cell.ajax__validatorcallout_callout_table: The table in the callout cell.ajax__validatorcallout_callout_table_row: The callout table row.ajax__validatorcallout_error_message_cell: The error message cell. ajax__validatorcallout_icon_cell: The warning icon cell.ajax__validatorcallout_close_button_cell: The close button cell. ajax__validatorcallout_arrow_cell: The arror cell.ajax__validatorcallout_innerdiv: Inner div of a cell. Used in the close button cell and the arrow cell.1
HighlightCssClass - A CssClass to apply to the invalid field.
WaringIconImageUrl - The path to a custom warning icon image.
CloseImageUrl - The path to a custom close image.
Aninations - Generic animations for the ValidatorCallout extender. See the Using Animations walkthrough and Animation Reference for more details.
- OnShow - The OnShow animation will be played each time the validation popup is displayed. The popup will be positioned correctly but hidden. The animation can use to display the popup along with any other visual effects.
- OnHide - The OnHide animation will be played each time the validation popup is hidden.
1