ASP.NET Core QRCode Overview

The QRCode TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers for the Kendo UI QRCode widget. To add the component to your ASP.NET Core app, you can use either.

QR codes take a piece of information from a transitory media, place it into the cell phone, and enable the cell phone to quickly read these generated images. All graphics are rendered on the client by using Canvas or SVG.

The QRCode generates Canvas and Scalable Vector Graphics (SVG) images that represent Quick Response (QR) codes.

Telerik UI for ASP.NET Core Ninja image
New to Telerik UI for ASP.NET Core?

Telerik UI for ASP.NET Core is a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

To see the component in action, check the examples:

Initializing the QRCode

The following example demonstrates how to define the QRCode.

    <kendo-qrcode name="qrUrl"></kendo-qrcode>

Basic Configuration

To configure the QRCode, pass the configuration options as attributes, for example:

  • The name of the QRCode is mandatory—it specifies the id and the name attributes of the QRCode element.
  • The Value() option allows you to set the initial QRCode value.
  • The error correction level allows you to control the density of the QRCode image. You can specify it by using the ErrorCorrection() method.
        .Border(border => border.Color("#AA11AA").Width(2))
    <kendo-qrcode name="qrUrl" 
        size=" 150">
        <border color="#AA11AA" width="2" />

Functionality and Features

  • Encoding—The QRCode supports a set of encoding conventions.
  • Types—Explore the available types of overlay.

Next Steps

See Also

In this article