Simple to generate QR Code barcode images in ASP.NET web using C# class library
Quick to create QR Code barcode on a web page by dragging ASP.NET Barcode DLL
Able to control QR Code barcode image properties through ASP.NET Barcode Controller
Able to use C# code to set QR Code barcode image data mode, ECL, version, color & size
All encoded ASP.NET QR Code barcode images are compatible with QR Code industrial specifications
ASP.NET C# QR Code Barcode Generation - Requirement
BarcodeLib.Barcode.ASP.NET.dll
Microsoft .NET Framework 2.0 or greater
Visual Studio .NET 2005 or greater
ASP.NET Web Controller - C# QR Code Generation
Unzip Barcode for ASP.NET trial package and you will find BarcodeLib.Barcode.ASP.NET.dll. Then do as follows:
Add it to your ASP.NET C# project Toolbox.
Right click Toolbox, select Choose Items..., switch to .NET Framework Components tab, and locate BarcodeLib.Barcode.ASP.NET.dll. Then, you'll find four components, including QRCodeASPNET.
Under barcode folder of the trial package, copy files "qrcode.aspx", "qrcode.aspx.cs" to your created ASP.NET project folder where the barcode images will be generated.
Drag QRCodeASPNET to aspx page and then run the project to see the generated QR Code image. And this QR Code barcode properties are all in default values.
If you want to customize the QR Code image properties, you may directly set in the Properties window or using the C# code like below.
ASP.NET Class - C# QR Code Barcode Image Generation
Add BarcodeLib.Barcode.ASP.NET.dll to your ASP.NET C# project Reference.
In Solution Explorer window, right click on your project, select Add Reference..., switch to Browse tab and find BarcodeLib.Barcode.ASP.NET.dll.
Then, please use the following Visual C# sample code to generate QR Code for your ASP.NET application.
QRCode qrcode = new QRCode();
qrcode.Data = "www.barcodelib.com";
qrcode.ModuleSize = 4;
qrcode.ECL = QRCodeErrorCorrectionLevel.L;
qrcode.ImageHeight = 118;
qrcode.ImageWidth = 118;
// Save QR Code barcode image into your system
qrcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif;
qrcode.drawBarcode("C:/sample-qrcode.gif");