QRCode for ASP.NET Web Forms
Error Correction Level
QRCode Features > Error Correction Level

QRCodes allow an error margin of upto 30%. Thus, information can be recovered from the QRCode even when some data is missing or the QRCode is damaged. This feature is helpful in creating customized QRCodes as you can add images or logos on the QRCode, which may damage the code, but it can still be scanned easily.

The QRCode control has four error correction levels.

Complete the following steps, to change the error correction level of the QRCode control.

In the Designer

  1. Click the Smart Tag. The C1QRCode Tasks Menu appears.
  2. Select the error correction level from the ErrorCorrectionLevel combobox, as per your requirement.
  3. Alternatively, right click the QRCode and select Properties to open the Properties window. Set the ErrorCorrectionLevel property in the Properties window.

In Source View

Set the ErrorCorrectionLevel property within the <cc1:C1QRCode> tag, to change the error correction level of the QRCode.

Source View
Copy Code
<cc1:C1QRCode ID="C1QRCode1" runat="server" ErrorCorrectionLevel="H" />

In Code

Add the following code to the Page_Load event, to set the ErrorCorrectionLevel property in code view.

C#
Copy Code
C1QRCode1.ErrorCorrectionLevel = C1.Web.Wijmo.Controls.C1QRCode.ErrorCorrectionLevel.H;
VB
Copy Code
C1QRCode1.ErrorCorrectionLevel = C1.Web.Wijmo.Controls.C1QRCode.ErrorCorrectionLevel.H

What You've Accomplished

The error correction level has been set to H (High) allowing an error margin of 30%.