BizCode Barcode Generator for ASP.NET
The most professional barcode solutions for Microsoft ASP.NET
Quick Overviews
  • Barcode creating class library
  • Support ASP.NET IDEs & IIS
  • Easy to use & integrate
  • Dynamic barcodes support
  • High-usability controls provided
How to Encode QR Code Data in ASP.NET
BusinessRefinery.com ASP.NET Barcode Generator is a collection of DLLs for generating and customizing QR Code barcode as well as other 20+ linear & 2D barcode within ASP.NET web applications, web services.
ASP.NET QR Code Barcode Generator makes it easy to work with Microsoft Visual Studio, C#.NET, VB.NET and Internet Information Service (IIS) and compatible with QR Code specification in ISO - ISO / IEC 18004 (2nd edition 2006-09-01). More information about QR Code barcode related property settings, please see:
QR Code Data Related Properties

Data Mode

Barcode Generator for ASP.NET provides DataMode class for users, if they want to set encode QR Code using different data modes.

6 QR Code data modes:
  • Auto: encodes all 256 possible 8-bit byte values
  • Alphanumeric: encodes uppercase and lower case letters Aa-Zz
  • Byte: encodes 8-bit values according to ISO/IEC 8859-1
  • Numeric: encodes 10 Arabic digits 0-9
  • Kanji: encodes Kanji characters
  • Customer: encodes data according to the customer

Code

Barcode Generator for ASP.NET provides Code class for users, if they want to manipulate QR Code barcode length.

ProcessTilde

Barcode Generator for ASP.NET provides ProcessTilde class for users, if they want to encode special character for QR Code using "~".
  • 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126
    Strings from "~256" to "~299" are unused
  • 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
    Strings from "~665536" to "~699999" are unused
  • for GS1 AI Code:
  • ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)
  • SJIS: from ~9ddddd (Shift JIS 0x8140 ~ 0x9FFC and 0xE040 ~ 0xEBBF)

Error Correction Level

Barcode Generator for ASP.NET provides ECL class for users, if they want to create QR Code with four different levels of error corrections: L, M, H, and Q.
Encode QR Code Barcode Data in ASP.NET & IIS
Be sure that you have installed those following programs onto your computers:
  • Microsoft .NET Framework 2.0/3.0/4.0
  • Microsoft Visual Studio 2005/2008/2010 (Express, Professional & Standard Edition)
  • Microsoft Internet Information Service (IIS)
  • Barcode Generator for ASP.NET installed
Encode QR Code Barcode Data in ASP.NET Web Forms Using BarcodeControl
  1. Add ASP.NE Barcode Control onto your .NET Visual Studio Toolbox;
  2. Drag and drop the WebQRCode control into the Forms;
  3. Run the website and you will see a barcode image generated;
  4. Go to Address bar and change your URL with following one: http://localhost/br_barcode/qrcode.aspx?code=0123456789&data-mode=3&symbology=4&ecl=2;
  5. Then a QR Code occurs.
Encode QR Code Barcode Data in ASP.NET Using C#, VB.NET Class
using BusinessRefinery.Barcode;

QRCode barcode = new QRCode();

// Select different data mode for QR Code data encoding
Barcode.DataMode = QRCodeDataMode.AlphaNumeric;

// Modify QR Code data length
barcode.Code = "QR Code";

// Select different ECL for QR Code
Barcode.ECL = QRCodeECL.H;

barcode.drawBarcode2ImageFile("c:/qr-code-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.QRCode = 
New BusinessRefinery.Barcode.QRCode()
QRCode barcode = new QRCode();

' Select different data mode for QR Code data encoding
Barcode.DataMode = QRCodeDataMode.AlphaNumeric

' Modify QR Code data length

' Select different ECL for QR Code
Barcode.ECL = QRCodeECL.H

barcode.drawBarcode2ImageFile("c:/qr-code-csharp.gif")
Customize Code Barcode Data in Internet Information Service (IIS)
  1. Download Barcode Generator for ASP.NET and unzip;
  2. Copy the whole barcode fold and contents into IIS and create a new virtual directory called "br_barcode";
  3. Restart IIS, navigate to http://localhost/br_barcode/qrcode.aspx?code=0123456789&data-mode=3&symbology=4&ecl=2.