Skip to content

Example of Default Functionalities in ASP.NET MVC Message Control

This sample demonstrates the default functionalities of the ASP.NET MVC Message control with different severity types and predefined styles.

Editing is restricted
Please read the comments carefully
Your message has been sent successfully

The Message control displays messages with different severity levels, set with icons and colors to denote the importance and context of the message to the end user.

The available severity messages are Normal, Success, Info, Warning and Error.

  • Normal - The message is displayed with an icon and color to denote it as a normal message.
  • Success - The message is displayed with an icon and color to denote it as a success message.
  • Info - The message is displayed with an icon and color to denote it as information.
  • Warning - The message is displayed with an icon and color to denote it as a warning message.
  • Error - The message is displayed with an icon and color to denote it as an error message.

In this sample, messages are displayed with a distinct icon and a color based on the Content and Severity properties.