ASP.NET Core Barcode Setup

Shield UI Barcode for ASP.NET Core is a server-side wrapper component implemented as an ASP.NET Core MVC Helper.

For a detailed guide how to setup Shield UI for your ASP.NET Core project, check out this page.

The ASP.NET Core MVC helper API is a 1:1 mapping of the JavaScript Barcode widget configuration, so you only have to get familiar with a single set of configuration options:

// JavaScript Code128 demo
$("#code128").shieldBarcode({
    type: "CODE-128",
    value: "SHIELD UI"
});
// ASP.NET Core Code128 demo
@(Html.ShieldBarcode()
    .Name("code128")
    .HtmlAttribute("class", "barcode")
    .Type(Shield.Mvc.UI.Barcode.BarcodeType.CODE_128)
    .Value("SHIELD UI"))

To see the configuration options in action, please refer to our online demos.

The supported barcode types are:
"CODABAR",
"CODE-11",
"CODE-39",
"CODE-93",
"CODE-128",
"CODE-128-A",
"CODE-128-B",
"CODE-128-C",
"CODE-25-STANDARD",
"CODE-25-INTERLEAVED",
"EAN-8",
"EAN-13",
"UPC-A",
"UPC-E",
"MSI-10",
"MSI-10-10",
"MSI-11",
"MSI-11-10",
"POSTNET"