AlertBox25
AlertBox25 is a lightweight notification control used to display
contextual messages such as success confirmations, informational notices,
warnings, and error alerts. It helps communicate system feedback clearly and
consistently to users.
Features
- Supports four alert types: Success, Info, Warning, and Error
- Automatic icon selection based on alert type
- Reusable across forms, dashboards, and pages
Alert Types
- Success – Indicates successful operations
- Info – Displays informational messages
- Warning – Alerts users about potential issues
- Error – Highlights critical errors or failures
Properties
-
AlertType –
Defines the type of alert to display
-
Description –
Message content shown inside the alert box
How It Works
AlertBox25 dynamically applies the appropriate icon and color class
based on the selected AlertType.
The message content is injected into a predefined HTML template.
Sample Code
@AlertBox25.GetHtml(
AlertBox25.AlertType.Error,
"Unable to process your request. Please try again."
)
Visual Behavior
-
Alert color changes automatically based on alert type
-
Font Awesome icons are applied for better visual recognition
-
Alerts follow standard Bootstrap spacing and alignment