Streaming GS1 128 Image into Your ASP.NET Web Pages
- 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
- Install ASP.NET Barcode Generator Control.
- Add ASP.NET Barcode Generator Control to your Visual Studio ToolBox.
- Copy "linear.aspx" and "linear.aspx.cs" to the folder where your aspx pages are generating barcodes.
- Drag and drop "LinearWebForm" to your ASPX web forms.
- 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
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:
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.
- 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
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
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.
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
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
