Our Customers
Contact Us Email: support@barcodelib.com
Home > ASP.NET Barcode> ASP.NET Barcode Generation Guide > Code 39 ASP.NET Barcode Generation Guide
Download Barcode for ASP.NET Trial

ASP.NET Code 39 Barcode Generator SDK

How to Generate Code 39 Barcodes in ASP.NET Web Applications & IIS
  • High-quality .NET Code 39 barcode component for C# & VB.NET programmers
  • Able to create Code 39 barcodes in IIS with ASP.NET barcode control
  • Capable of creating Code 39 barcodes in ASP.NET class using C# or VB .NET
  • Available to set properties of ASP.NET Code 39 barcode images freely
  • Possible to output generated Code 39 barcodes in different ways
  • Provide detailed user-oriented guide for ASP.NET Code 39 barcode image creation
ASP.NET Code 39 Barcode Introduction
Code 39 barcode is a very basic linear barcode. It has been widely used in non-retail environment.
Barcode Compatibility: Under the guidance of ISO/IEC 16388-2007, all Code 39 barcode symbols created by ASP.NET Barcoding DLL are absolutely compatible with the latest industry standards. Thus, the produced Code 39 Images can be easily read by all barcode recognition tools.
Encodable Characters:
  • Full alphanumeric A to Z, 0 to 9
  • 8 special characters (space, $ ,% ,+ ,- ,. ,/ and *)
To know more, please see .NET Code 39 Introduction.
Install ASP.NET Code 39 Barcode Generator Control
  1. Add ASP.NET bar coding library dll to your ASP.NET project reference.
    • Click "Add Reference..." in "Solution Explorer".
    • Click "Browse" to find Barcodelib.Barcode.ASP.NET.dll in the unzipped file, and click "OK" button.
  2. Add ASP.NET bar coding library dll to Visual Studio Toolbox.
    • Right click in Toolbox and select "Choose Items...".
    • In the pop-up window, click "Browse..." to locate the dll Barcodelib.Barcode.ASP.NET.dll.
    • Click "OK" and then four items will be listed in VS Toolbox, as is shown in following picture.

Produce Code 39 Barcode Image in ASP.NET Web Site
  1. Install ASP.NET Code 39 Barcode Generator DLL(as is shown in the above Part).
  2. Download and unzip the product, then open the folder barcode and copy files "linear.aspx", "linear.aspx.cs" to your folder where Code 39 images will be created.
  3. Drag LinearASPNET from the toolbox to the split part of your aspx page.
  4. Change barcode type to Code 39 and then set (if needed) its parameters in the Properties window on the right side.
  5. Run the project to view the produced Code 39 barcode image.
Generate Code 39 Barcode in ASP.NET Using C# or VB Class
The following are free C# and VB.NET demos to create Code 39 symbols in ASP.NET:
     BarcodeLib.Barcode.Linear code39 = new BarcodeLib.Barcode.Linear();
code39.Type = BarcodeLib.Barcode.BarcodeType.CODE39;
code39.Data = "123648ADF";

code39.BarColor = System.Drawing.Color.Blue;
code39.BarWidth = 1;
code39.InterGap = 3;
code39.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg;

// Save Code 39 barcode image into your system
Above Code 39 sample code is written in Visual C# 2005 View More Code 39 C#.NET Demo Code
     Dim code39 As New BarcodeLib.Barcode.Linear()
code39.Type = BarcodeLib.Barcode.BarcodeType.CODE39
code39.Data = "123648ADF"

code39.BarColor = System.Drawing.Color.Blue
code39.BarWidth = 1
code39.InterGap = 3
code39.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg

' Save Code 128 barcode image into your system
code39.drawBarcode ("C:/vbnet-code39.jpeg")
Above Code 39 sample code is written in Visual Basic View More Code 39 VB.NET Demo Code
Generate Linear Code 39 Barcode Image in Microsoft IIS
  1. Download and unzip the product, and copy folder barcode to your IIS folder, e.g. C:\ interpub.
  2. Create a new virtual directory in your IIS named "barcode", and connect it to the above "barcode" folder pasted in inetpub.
  3. Restart IIS and navigate to:
    To make further adjustment for the Code 39 image, please view web stream URL parameters for Code 39 here: .NET Code 39 Barcode Property Settings
  4. If you want to add this Code 128 barcode image to your aspx or html page, please pass the url to IMG tag or src value.
    <img src=http://YourDomain:port/barcode/linear.aspx?Type=7&Data=123648ADF& LeftMargin=12&RightMargin=12/>
    This method will not generate any barcode images in your IIS server side.
ASP.NET Code 39 Barcode Generator Supported Barcode Types
Support Linear Barcodes:
Support Matrix Barcodes:
Linear (1D) Barcode Types Supported by ASP.NET Barcode Library: Codabar, Code 11, Code 2 of 5, Code 39, Code 93, Code 128, EAN 8, EAN 13, GS1-128/EAN-128, Interleaved 2 of 5, ITF14 (UPC Shipping Container Symbol), MSI Plessey, Onecode, Planet, Postnet, RM4SCC (British Royal Mail 4-State Customer Barcode), UPC-A, UPC-E.
Matrix (2D) Barcode Types Supported by ASP.NET Barcode Library: Data Matrix, PDF 417, QR Code.

Other Related Barcode Generation Articles

ASP.NET C# & VB.NET Barcode Generation Guide