# AlertBox

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.

{% hint style="info" %}
For a full list of properties, methods and events see the [API documentation.](http://docs.wisej.com/api)
{% endhint %}

## 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](https://553579532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MF1D11gPs_az3xaKusw%2Fuploads%2Fgit-blob-9f47940031427c18390be8e5b74b44ac02db449c%2Fimage.png?alt=media)

### HTML Content

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

{% tabs %}
{% tab title="C#" %}

```csharp
AlertBox.Show(@"<ul>
                  <li>Coffee</li>
                  <li>Tea</li>
                  <li>Milk</li>
                </ul>", allowHtml: true);
```

{% endtab %}
{% endtabs %}

![AlertBox displaying HTML formatted list](https://553579532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MF1D11gPs_az3xaKusw%2Fuploads%2Fgit-blob-1d4993fb5e1bca1e2df5ef458a3f3c74ec952018%2Fimage.png?alt=media)

## Advanced

### JavaScript Widget

| Item             | Description                                                                                                         |
| ---------------- | ------------------------------------------------------------------------------------------------------------------- |
| Class name       | "wisej.web.AlertBox"                                                                                                |
| Theme appearance | "alertbox", see [Themes](https://docs.wisej.com/theme-builder/theme-elements/elements)                              |
| Source code      | [https://github.com/iceteagroup/wisej-js](https://github.com/iceteagroup/wisej-js/blob/master/wisej.web.TextBox.js) |
