The ASP.NET MVC Badge is a pure CSS control used to convey notifications, messages, or statuses in different shapes and sizes. The Badge control can be easily integrated with ListView, Avatar, and other container controls.
The ASP.NET MVC Badge can display the number of unread notifications in different colors to indicate their priority level.
Create clickable link badges using the link CSS badge variant with an anchor element. It has hover and focus states.
Create badges that overlap with profile icons or images, similar to social media notification number badges.
A notification badge can be positioned at the top or bottom of profile icons or images. It is placed at the top by default.
Even though badges support the conventional top and bottom positions, badge positions can be changed as desired. This can be done by adding a custom class to the badge element to override the default position applied from the source.
Eight predefined contextual color variants are available for badges.
The ASP.NET MVC Badge control supports six different styles: default, circle, pill, notification, ghost, and dot.
Completely customize the ASP.NET MVC Badge attributes, like dimensions and colors.
Integrate the ASP.NET MVC Badge into various controls to achieve different applications, such as displaying the number of unread messages in an email account or the status of product support.
The Badge control is also available in Angular, React, Vue, and JavaScript frameworks. Check out the different Badge platforms from the links below:
Easily get started with the ASP.NET MVC Badge using a few simple lines of CSHTML code example as demonstrated below. Also explore our ASP.NET MVC Badge Example that shows you how to render and configure a Badge in ASP.NET MVC.
@using Syncfusion.EJ2
@section ControlsSection{
<div class="col-lg-12 control-section default">
<div class="sample_container badge-default">
<div class="e-btn-group e-custom-button">
<button id="update" class="e-btn">
Updates
<!-- Notification Badge -->
<span class="e-badge e-badge-info e-badge-notification e-badge-overlap">14</span>
</button>
<button id="task" class="e-btn">
Tasks
<!-- Notification Badge -->
<span class="e-badge e-badge-success e-badge-notification e-badge-overlap">48</span>
</button>
<button id="notify" class="e-btn">
Notifications
<!-- Notification Badge -->
<span class="e-badge e-badge-secondary e-badge-notification e-badge-overlap">99</span>
</button>
</div>
</div>
</div>
You can find our ASP.NET MVC Badge demo, which demonstrates how to render and configure the Badge.
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.
A good place to start would be our comprehensive getting started documentation.
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.