Trusted by the world’s leading companies
Overview
The ASP.NET MVC Toast Toast is a small, nonblocking notification pop-up. It is a readable message displayed at the bottom of the screen or at a specific target and disappears automatically after a few seconds (time out) with different animation effects. The control has various built-in options for customizing visual elements, animations, durations, and dismissing toasts.
Interactive toasts
Users can create a more interactive toast message by configuring inputs and buttons on the notification pop-up that help them react quickly on notifications (for example, reply to a chat message directly from the toast pop-up).
Visual elements
A normal toast notification can be designed with a plain text, and optional images, icons, inputs, and buttons. Users can load HTML content and change the content dynamically inside the toaster with templates.
Positioning notifications
The ASP.NET MVC toast notifications control is easily positioned wherever you want using built-in positions or custom axis values (X, Y).
Animation
Users can configure different animations to show or hide the toast and the animation duration based on the content length of the notification message and reading time.
Dismiss toasts
Users can dismiss all ASP.NET MVC Toast notifications using user input or timeouts. Notifications can also be dismissed by swiping or tapping them.
Multiple notifications
Users can display multiple toast notifications in a sequence (queue up) within a set duration. Also, users can change the order of a toast notification sequence to the newest on top.
Toast message types
Users can easily design common ASP.NET MVC toast notifications using built-in classes such as alert, success, warning, information, and error.
Timing (duration)
The ASP.NET MVC toast notification control can be configured with a duration time for a complete message to be read before it is hidden. You can extend the timeout dynamically after focusing on it.
Progress bar
Users can enable a progress bar inside the toast to track the progress of an operation and the expiration of a toast message.
Toast message verification
Users can verify duplicate toast notifications and allow only distinct messages on the screen. They can restrict the maximum number of toasts to be displayed. Also, users can prevent toast messages from hiding and make them stick with the screen.
Appearance
Customize the look and feel of the Toast by changing its fill color, background, border, and item opacity.
Accessibility
- Fully supports WAI-ARIA accessibility that makes toast accessible to on-screen readers and assistive devices.
- Follows the WCG 2.0 standard standard in the design of the UI visual elements such as foreground color, background color, line spacing, text, and images.
Developer-friendly API
Developers can control the appearance and behaviors of the toast notification control, including its positioning, using a rich set of APIs.
Other supported frameworks
The Toast component is also available in Blazor, React, Angular, JavaScript and Vue frameworks. Check out the different Toast platforms from the links below,
ASP.NET MVC Toast Code Example
Easily get started with the ASP.NET MVC Toast using a few simple lines of CSHTML code, as demonstrated below. Also explore our ASP.NET MVC Toast Example that shows you how to render and configure the Toast in ASP.NET MVC.
@Html.EJS().Toast("element").Title("Matt sent you a friend request").Content("You have a new friend request yet to accept").Render()
<div style="text-align: center">
@Html.EJS().Button("toastBtnShow").CssClass("e-btn").Content("Show Toasts").Render()
@Html.EJS().Button("toastBtnHide").CssClass("e-btn").Content("Hide All").Render()
<script type="text/javascript">
document.getElementById('toastBtnShow').onclick = function () {
document.getElementById('element').ej2_instances[0].show();
};
document.getElementById('toastBtnHide').onclick = function () {
document.getElementById('element').ej2_instances[0].hide('All');
};
</script>
</div>Not sure how to create your first ASP.NET MVC Toast? Our documentation can help.
I’d love to read it now140+ ASP.NET MVC UI CONTROLS
Frequently Asked Questions
Why should you choose Syncfusion ASP.NET MVC Toast?
Toast is a small, Animated notification pop-up.
Fully customizable alert messages with timing and a progress bar.
Predefined standard notification types, such as success, error, warning, and information.
- One of the best ASP.NET MVC Toast controls in the market, offering a feature-rich UI.
- Simple configuration and API.
- Supports all modern browsers.
Expansive learning resources such as demos and documentation to let you get started quickly with ASP.NET MVC Toast.
Where can I find the Syncfusion ASP.NET MVC Toast demo?
You can find our ASP.NET MVC Toast demo, which demonstrates how to render and configure the Toast.
Can I download and utilize the Syncfusion ASP.NET MVC Toast for free?
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
How do I get started with Syncfusion ASP.NET MVC Toast?
A good place to start would be our comprehensive getting started documentation.
Our Customers Love Us
Here are some of their experiences.
Awards
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.