Home >
Barcode in ASP.NET
This guide will walk you through the general installation process and basic generation process of ASP.NET Barcode Web Server Control.
EdgeDoc ASP.NET Document Viewer web control has integrated barcoding functions.
You will also walk through the barcode generation in Visual Studio as well as in IIS.
Related .net document control helps:
asp.net view powerpoint: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
asp.net document viewer example:
EdgeDoc:ASP.NET Document Viewer C# Control:
Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net edit pdf page control:
ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net edit pdf text control:
ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net edit pdf image using c#:
ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net view powerpoint: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
This guide includes:
- How to install Barcode Server Control in Visual Studio
- How to generate barcode in ASP.NET projects in Visual Studio
- How to drag and drop Barcode Server Control DLL
- How to setup Barcode Server Control DLL in Microsoft IIS
- How to generate barcode using on Web pages using IIS
Barcode Generation in ASP.NET
Installation in Visual Studio
- Download the trial package and unzip
- Copy Barcode Server Control DLL to your project folder
- Open your project using Visual Studio, and add DLL to the project reference
Add DLL to Toolbox in Visual Studio
- Right click "Toolbox", then select menu "Choose Items... "
- Click button "Browse...", find and select ASP.NET Barcode Web Server Control DLL in your project folder
- Find the ASP.NET Barcode Web Server Control in the Toolbox, now the control is ready-to-use in Visual Studio
There are two ways to use the installed DLL in Visual Studio:
Drag & Drop Barcodes to ASP.NET Web Forms
- Drag and drop DLL to your ASPX web forms
- Generate, customize, and preview the barcodes on the web forms
Generate Barcodes by coding
Add C#.NET to the Web Forms:
Linear barcode = new Linear();
barcode.Type = BarcodeType.CODE128;
barcode.Data = "Code 128";
barcode.drawBarcode("C://csharp-barcode-code128.gif");
You can also Add VB.NET to the Web Forms:
Dim barcode As Linear = New Linear
barcode.Type = BarcodeType.CODE128
barcode.Data = "Code 128"
barcode.drawBarcode("C:/vbnet-barcode-code128.gif")
Barcode Generation in Microsoft IIS without Visual Studio
Create file Directory in IIS
- Copy "barcode" folder to to your IIS
- Create a new virtual directory, named "barcode"
Preview barcode image
- Restart IIS
- Navigate to http://YourDomain:Port/barcode/linear.aspx?DATA=Code 128&TYPE=4
Create barcode image in web pages
- Generate, customize, and preview in html or aspx pages
- Confirm the barcode and insert a image tag (img) into your web pages, for example: