ASP.NET GS1 128 / EAN-128 Generator Library

Integration & Developer Guide to create GS1-128 in ASP.NET Web Server application

Generate barcode GS1-128 images in Visual ASP.NET web application with complete sample .NET source code

  • Generate, create GS1-128 in Visual ASP.NET applications
  • Easy to install & integrate barcode GS1 128 generation library SDK into ASP.NET developments
  • Generate industry standard linear, 2d barcode types including ASP.NET QR-Code, ASP.NET Data Matrix, ASP.NET Code-128, ASP.NET EAN
  • Generate GS1 128 images in ASP.NET class
  • Create barcode GS1 128 in ASP.NET webform application
  • Draw & print GS1 128 in SQL Server Reporting Services (SSRS) & Crystal Reports for ASP.NET projects
  • Easy to encode GS1 128 images to jpeg, gif, png, tiff, bitmap files in ASP.NET program
Here we will explain how to generate GS1-128 (also named EAN-128, a GS1-compliant linear barcode for supply chain management) in ASP.NET projects using C# and the OnBarcode Barcode Generator library. It covers AI (Application Identifier) data formatting, basic barcode characteristics, automatic check digit handling, and dimension configuration. All content is fully optimized for ASP.NET Core, .NET Framework, MVC (Model-View-Controller), Razor Pages, Web API, and Blazor Server application types.



Core Content Overview
  • Format valid GS1 AI (Application Identifier) and data pairs for encoding
  • Understand GS1-128 encodable characters, function characters, and auto-generated structural symbols
  • Learn about mandatory automatic check digit processing (no manual configuration required)
  • Configure barcode dimensions, unit of measure, module size, and quiet zone margins in ASP.NET
  • Integrate barcode generation with ASP.NET concepts: Model Validation, Logging, Hosting, and Deployment

ASP.NET GS1 128 Generator DLL Introduction

Top
ASP.NET GS1 128 Generator SDK is one of the barcode generation functions in OnBarcode's Barcode for ASP.NET Generation Controls, which generates & prints GS1 128 and 20+ other linear & 2D bar codes in ASP.NET web applications.
This article is providing several methods to use ASP.NET Barcode Generation Control to generate GS1 128 barcodes in ASP.NET web pages, ASP.NET web forms, and ASP.NET classes.

GS1 128 Generators

OnBarcode provides several GS1 128 Generator components and software, such as .NET GS1 128 Generator, Java GS1 128 Generator, C# GS1 128 Generator, VB.NET GS1 128 Generator, GS1 128 Generator.


Streaming GS1 128 Image into Your ASP.NET Web Pages

Top
  • Under downloaded trial package, copy barcode folder and its contents to your IIS, and create a new virtual directory, named "barcode".
  • Restart IIS, navigate to http://YourDomain:Port/barcode/linear.aspx?DATA=(00)350123451234567894&TYPE=11.
  • To create barcode image in html or aspx pages, you can insert a image tag (img) into your web pages.
    For example, <img src="http://YourDomain:Port/barcode/linear.aspx?DATA=(00)350123451234567894&TYPE=11"/>

Generate GS1 128 into Your ASP.NET Web Forms

Top
  1. Install ASP.NET Barcode Generator Control.
  2. Add ASP.NET Barcode Generator Control to your Visual Studio ToolBox.
  3. Copy "linear.aspx" and "linear.aspx.cs" to the folder where your aspx pages are generating barcodes.
  4. Drag and drop "LinearWebForm" to your ASPX web forms.
  5. Run the website to view the barcodes generated. To customize GS1 128 settings, view GS1 128 barcode settings.

Generate GS1-128 Barcodes in ASP.NET Class

Top
If you need generate GS1 128 barcodes in your ASP.NET class using C# or VB.NET, we provides complete barcode generation source code for GS1 128 in C# and GS1 128 in VB.NET.


GS1-128 Barcode Basic Characteristics in ASP.NET

This section defines valid characters, structural elements, and automatic check digit behavior for GS1-128 in ASP.NET applications.


Encodable Character Set

GS1-128 supports a defined character set based on international standards:
  • Uses the ISO/IEC 646 International Reference Version subset for GS1 AI element strings
  • Supports ASCII characters with values from 128 to 255 in Code 128 symbols
  • Includes four non-data function characters: FNC1, FNC2, FNC3, FNC4
  • Note: FNC2 and FNC4 are NOT used in standard GS1-128 barcodes
  • Supports four code set selection characters (including single-character shift)
  • Includes three start characters and one stop character



Note: You do NOT need to manually add function characters, code set selectors, start characters, or stop characters in your ASP.NET code. The library inserts them automatically.


GS1-128 Check Digit Character

GS1-128 uses the same check digit logic as Code 128:
  • One mandatory check digit is required for every symbol
  • The check digit is NOT displayed in HRI (human readable interpretation)
  • The AddCheckSum property is not supported for GS1-128
  • The barcode library automatically calculates and inserts the check digit before the stop character
This automation reduces coding errors in your ASP.NET Request Pipeline and improves reliability.


GS1-128 Barcode Dimension & Size Settings in ASP.NET

You can fully customize GS1-128 barcode dimensions for web display, printing, or integration into View Component and Partial View elements in ASP.NET.

Supported Size Properties
  • UOM: Unit of measure (supports PIXEL, CM, INCH)
  • X: Width of the narrow bar module (minimum defined by application specs)
  • Y: Height of the bar module
  • LeftMargin & RightMargin: Quiet zone margins (minimum width = 10X)



Note: The GS1-128 barcode quiet zone must be at least 10X to ensure reliable scanning in Production Environment. Insufficient margins will cause scan failures.


Summary

You have learned the complete workflow to generate, configure, and validate GS1-128 barcodes in ASP.NET projects. This guide help you quickly generate and print ISO and GS1 standard GS1-128 barcodes in ASP.NET Core, MVC, Razor Pages, Web API, and Blazor Server applications.

Key Contents
  • GS1-128 generation in ASP.NET
  • Data must use valid GS1 AI (Application Identifier) format with parentheses
  • All structural characters (start, stop, FNC1, check digit) are added automatically
  • No manual check digit configuration is needed or allowed
  • Full dimension control: UOM, module size, barcode height, and quiet zone margins
  • Ready for Staging Environment, Production Environment, and IIS/Kestrel Deployment
You can now implement production-ready GS1-128 barcode functionality into any ASP.NET web application for supply chain, inventory, and traceability systems.







































Start with free trial package:








































Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.