Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.


Use @Html.Nettex().Alert() method to create a simple alert.

@Html.Nettex().Alert().Text("A simple primary alert—check it out!") 

Change Color

Use .Color(BootstrapColor color) method to set color

@Html.Nettex().Alert("A simple secondary alert—check it out!").Color(BootstrapColor.Secondary) 
@Html.Nettex().Alert("A simple success alert—check it out!").Color(BootstrapColor.Success) 
@Html.Nettex().Alert("A simple danger alert—check it out!").Color(BootstrapColor.Danger) 
@Html.Nettex().Alert("A simple warning alert—check it out!").Color(BootstrapColor.Warning) 
@Html.Nettex().Alert("A simple info alert—check it out!").Color(BootstrapColor.Info) 
@Html.Nettex().Alert("A simple light alert—check it out!").Color(BootstrapColor.Light) 
@Html.Nettex().Alert("A simple dark alert—check it out!").Color(BootstrapColor.Dark) 


use .Dismissible(bool dismissible) method to set dismissible. Default value is false

@Html.Nettex().Alert().Text("Dismissible set to false.").Dismissible(false)
@Html.Nettex().Alert().Text("Dismissible set to true").Color(BootstrapColor.Warning).Dismissible(true)

Additional Content

use .TextTemplate(Func[dynamic, HelperResult] template) method to set custom html content

@Html.Nettex().Alert().TextTemplate(<h4 class="alert-heading">Well done!</h4>
  <p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p>
  <p class="mb-0">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>)


Alerts are available for any length of text, as well as an optional dismiss button

Method Description

.Method(bool value)

Comming soon.