Example of Variants in ASP.NET MVC Message Control
This sample demonstrates the predefined appearance variants for the ASP.NET MVC Message control.
DEMO
SOURCE
Filled
Outlined
Text
The Message control can be displayed with predefined appearance variants. The available variants are Text, Outlined and Filled. The default variant type is Text.
- Text - The severity is differentiated using a text color and a light background color.
- Outlined - The severity is differentiated using a text color and a border without background.
- Filled - The severity is differentiated using a text color and a dark background color.
In this sample, messages are displayed with different appearances based on the Variantopens in a new tab property.
More information about Message variants can be found in this documentationopens in a new tab section.