QR Code Image Sample - pqScan.com
ASP.NET EAN-8 Creator Web Forms Control Encoding EAN-8 Barcode Image in ASP.NET Web forms Online Demo Download Trial Purchase Now
.NET Winforms

How to Generate EAN-8 in ASP.NET Web Server?

back to home  >  .NET Barcode Generator SDK  >  Generate Barcodes in ASP.NET  >  Generate EAN-8 in ASP.NET

ASP.NET EAN-8 Creator is one of the barcode generation functions in pqScan Barcode Creator for ASP.NET. You can generate an EAN-8 image by using pqScan Barcode Creator SDK. If you want to save time, you can also use our ASP.NET Barcode Creator Web Control to encodeEAN-8 barcode.

For more help, we provide guides to make other 1D barcodes in ASP.NET application: creating EAN-13 in web page, generating UPC-A in web page, printing Code39 in web page, drawing Code128 in web page.

Making and paintingEAN-8 use ASP.NET Barcode Creator API in web form class

Like printing EAN-8 image on .NET Windows Forms, developers can createEAN-8 in ASP.NET Web Forms. Here we will introduce you how to generateEAN-8 barcode in web page using C# code.

using System;
using System.Web;
using System.Web.UI;
using PQScan.BarcodeCreator;

namespace EAN8GeneratorInWeb
    public partial class WebForm1 : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
            Barcode ean8 = new Barcode();

            ean8.Data = "1234567";
            ean8.BarType = BarCodeType.EAN8;
            ean8.Width = 100;
            ean8.Height = 100;
            ean8.ShowText = true;


generate ean8 in asp.net

GeneratingEAN-8 and painting it on web pages in Visual Studio with ASP.NET Barcode Creator Web Control

Using pqScan Barcode Creator WebForms control to generate EAN-8 image, follow these steps:

  1. Unzip the downloaded EAN-8 barcode generator package to your web project's bin folder.
  2. Add ASP.NET Barcode Creator Web Control to Visual Studio Toolbox.
  3. Drag and drop BarcodeWebControl item to your ASPX web page.
  4. Copy "BarcodeWebHandler.ashx" file to the path where the web forms are drawingEAN-8 images.
  5. Run the web application, and anEAN-8 barcode image will rendered on the page.
  6. To specify the EAN-8 settings, you can make changes in the "properties" pane or in the run-time code.

Creating and printing EAN-8 on web page in IIS with ASP.NET Barcode Creator Web Control

  1. Download barcode generator package and unzip it.
  2. Publish you web site in IIS.
  3. Copy "BarcodeWebHandler.ashx" file from downloaded barcode generator package to your IIS root path.
  4. Copy "PQScan.BarcodeCreator.dll" to your IIS bin folder.
  5. Create an empty html in IIS root path, insert image tag like this:<img src="http://localhost:port/BarcodeWebHandler.ashx?BarType=EAN8&Data=1234567&Width=100&Height=100&ShowText=True"/>.
  6. Viewing html page on web browser, you will find the EAN-8 barcode generated on the page.

Note: If you encodeEAN-8 barcode image using ASP.NET Barcode Creator Control in web application, both in Visual studio and IIS, you can customize the barcode image's srcproperty to draw a new EAN-8 image by JavaScript, which is not refresh whole web page.

.NET Barcode Creator QR Code Creator in ASP.NET Data Matrix Creator in ASP.NET PDF 417 Creator in ASP.NET Aztec Creator in ASP.NET EAN 13 Creator in ASP.NET UPC A Creator in ASP.NET Code 128 Creator in ASP.NET Code 39 Creator in ASP.NET