ComponentOne QRCode for ASP.NET Web Forms
QRCode Features / Encoding
In This Topic
    Encoding
    In This Topic

    QRCode consists of four encoding modes:

    The alphanumeric mode compresses a message more than the byte mode, but it is unable to store lower case alphabets and can store only a few punctuation marks.

    Complete the following steps, to change the encoding mode of the QRCode control.

    In the Designer

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

    In Source View

    Set the Encoding property within the <cc1:C1QRCode> tag, to change the encoding mode of the QRCode.

    Source View
    Copy Code
    <cc1:C1QRCode ID="C1QRCode1" runat="server" Encoding="Byte" Text="QRCode Sample Text" />
    

    In Code

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

    C#
    Copy Code
    C1QRCode1.Encoding = C1.Web.Wijmo.Controls.C1QRCode.Encoding.Byte;
    
    VB
    Copy Code
    C1QRCode1.Encoding = C1.Web.Wijmo.Controls.C1QRCode.Encoding.Byte
    

    What You've Accomplished

    The encoding mode has been changed to Byte, so characters including lower case letters, digits as well as punctuations can be encoded into the QRCode.