Home  >  ASP.NET Barcode Generator Components  >  How to Print Barcode in ASP.NET  >  Code 128 Barcode Generator for ASP.NET Web Site
ASP.NET Code 128 Barcode Generator Component
ASP.NET Code 128 Barcode Generator Component is an advanced barcoding library, which could insert, create, or draw Code 128, Code 128a, Code 128b, and Code 128c in ASP.NET web applications using C# and VB.NET class languages.
Overview - ASP.NET Code 128 Barcode Generator Component
Code 128 ASP.NET Barcode generator, provided by KeepDynamic.com, is an easy-to-use barcode generating developer-library. It can generate Code 128 barcode in IIS, C# ASP.NET web application, VB.NET ASP.NET web serviced & Console applications.
Related barcoding solutions for generating Code128 barcode image in .NET applications:
Features - ASP.NET Code 128 Barcode Generator Component

Code 128 ASP.NET Barcode Generator Technology

Code 128 ASP.NET Barcode Generator Customization

View more about Code 128 Barcode Properties of ASP.NET Barcode Generator Library
Developing Tutorial - ASP.NET Code 128 Barcode Generator Component

How to Generate Code 128 Barcode in ASP.NET Web Controller

  1. Add KeepDynamic.BarCode.AspNet.dll from the file Library to your ASP.NET project and Visual Studio Toolbox
  2. Copy "linear.aspx", "linear.aspx.cs" from barcode folder in Documentation to your ASP.NET project
  3. Drag & drop BarCodeControl from the Toolbox to your ASP.NET project and a standard Code 128 barcode image will be generated
  4. Click created Code 128 barcode and change the values of other Code 128 barcode properties in the Properties window

How to Generate Code 39 Barcode in ASP.NET Class Applications

  1. Integrate KeepDynamic.BarCode.AspNet.dll from the file Library to your ASP.NET project
  2. You can generate & create Code 128 barcode images by copying following C# or VB.NET class codes to your ASP.NET class application
C# code for Code 128 barcode generation in ASP.NET web application
// generate linear barcode object 
BarCode barcode = new BarCode();

// Set barcode type to Code-128
barcode.SymbologyType = SymbologyType.Code128;

// Enter encodable value to Code128 barcode
barcode.CodeText = "Code128";

// set Code 128 barcode image settings
// Set bar width of Code 128
barcode.X = 3;

// set Code 128 barcode image
barcode.BarCodeWidth = 450;
barcode.BarCodeHeight = 90;

// save generated barcode images to png image file using C#
barcode.drawBarcode("C://kdcode128.png");
VB.NET code for Code 128 barcode generation in ASP.NET web application
' generate linear barcode object 
Dim barcode As New BarCode()

' Set barcode type to Code-128
barcode.SymbologyType = SymbologyType.Code128

' Enter encodable value to Code128 barcode
barcode.CodeText = "Code128"

' set Code 128 barcode image settings
' Set bar width of Code 128
barcode.X = 3

' set Code 128 barcode image
barcode.BarCodeWidth = 450
barcode.BarCodeHeight = 90

' save generated barcode images to png image file using VB.NET
barcode.drawBarcode("C://kdcode128.png")
How to Generate Code 128 Barcode in IIS using ASP.NET Barcoding Library
  1. Find folder barcode in the folder Documentation of downloaded trial package
  2. Copy cotent of folder barcode to your IIS project, eg:C:\interpub
  3. Create a new virtual directory in your IIS named "barcode", and connect it to the above barcode folder in the C:\interpub
  4. Restart your Microsoft IIS and navigate to:
    http://YourDomain:Port/barcode/linear.aspx?symbology-type=7&code-text=128128128&x=1&left-margin=10&right-margin=10
  5. You can use the following image tag to generate a Code 39 barcode on your html or aspx pages.
    <img src="http://YourDomain:Port/barcode/linear.aspx?symbology-type=7&code-text=128128128&x=1&left-margin=10&right-margin=10" />
Note: X refers to bar width and code-text refers to encodable characters.
Barcode Types - Code 128 ASP.NET Barcode Generating Control
Code 128 ASP.NET Barcode Generating Control can generate & create over 20 linear & 2d barcode images in ASP.NET web applications: