Code 128 barcode is a very high-density linear (1D) barcode types. Thus, it has been implemented worldwide in many applications where a relatively large amount of data must be encoded in a relatively small amount of space.
Barcode Compatibility: All Code 128 barcode images created by our ASP.NET Barcoding Library DLL comply with ISO/IEC 15417 (Second edition 2007-06-01) barcode specification. So, all these Code 128 linear barcode images can be read & scan by all high or low-resolution barcode recognition tools.
Encodable Characters:
Code Set A: Standard upper case U.S. alphanumeric keyboard characters and punctuation characters together with the control characters, (i.e. characters with ASCII values from 0 to 95 inclusive), and seven special characters.
Code Set B: Standard upper case alphanumeric keyboard characters and punctuation characters together with the lower case alphabetic characters (i.e. characters with ASCII values from 32 to 127 inclusive), and seven special characters.
Code Set C: The set of 100 digit pairs from 00 to 99 inclusive, as well as three special characters. This allows numeric data to be encoded as two data digits per symbol character, at effectively twice the density of standard data.
Special Characters:
The last seven characters of Code Sets A and B: Character values 96 - 102
The last three characters of Code Set C: Character values 100 - 102
How to Create Code 128 Barcode in ASP.NET web site & Microsoft IIS?
We provide two methods for Code 128 barcode generation in ASP.NET web site & Microsoft IIS.
Generate linear barcode Code 128 image using Buildin ASP.NET Barcode Application.
Download & unzip the trial, and copy barcode folder and its contents to your IIS folder, eg. C:\inetpub.
Create a new virtual directory in your IIS named "barcode", and connect it to the above "barcode" folder pasted in inetpub.
Restart your Microsoft IIS and navigate to: http://YourDomain:Port/barcode/linear.aspx?Type=2&Data=ASPNETCode128&LeftMargin=11&RightMargin=11 To make further adjustment for the Code 128 image, please view web stream URL parameters for Code 128 here: .NET Code 128 Barcode Property Settings
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=2&Data=ASPNETCode128&LeftMargin=11&RightMargin=11 /> This method will not generate any barcode images in your IIS server side.
Generate linear barcode Code 128 timage using ASP.NET web form controller.
Intall ASP.NET barcode controller to your .NET project by adding reference.
Add ASP.NET barcode library dll to your Visual Studio toolbox.
Open barcode in your unzipped trial package, and copy files "linear.aspx", "linear.aspx.cs" to the aspx page where you will be generating Code 128 images.
Now drag LinearASPNET to your ASP.NET web site, and change Code 128 settings if necessary in the Properties window.
Run the project to view the encoded Code 128 barcode on your aspx page.
How to Create Code 128 Image in ASP.NET Using C# / VB.NET Class?
Please use the following free C# and VB.NET demo code to generate Code 128 images in .NET class library.