AlertBox

Displays an alert box that can contain an icon and text that inform and instruct the user. Alert boxes are not modal and can disappear automatically.

The Wisej.NET AlertBox cannot be instantiated directly. Display messages by calling the static AlertBox.Show method, which accepts parameters for title, message, and icon configuration.

For a full list of properties, methods and events see the API documentation.

Features

Styles

The AlertBox supports several alert styles:

  • None: No icon displayed

  • Error: Red X or exclamation point indicating an error

  • Stop: Stop sign icon

  • Hand: Raised hand icon

  • Question: Question mark in circle

  • Warning: Exclamation point in triangle

  • Information: Letter i in circle

AlertBox showing different icon styles

HTML Content

Enable HTML content in messages by setting the allowHtml parameter to true:

AlertBox.Show(@"<ul>
                  <li>Coffee</li>
                  <li>Tea</li>
                  <li>Milk</li>
                </ul>", allowHtml: true);
AlertBox displaying HTML formatted list

Advanced

JavaScript Widget

Item
Description

Class name

"wisej.web.AlertBox"

Theme appearance

"alertbox", see Themes

Last updated

Was this helpful?