Home [an error occurred while processing this directive]

Getting started in ASP.NET with BarcodeWebImage control (Bytescout.BarCode SDK for .NET)

Download Free Trial Buy Now More Information
Shop safely: we provide 30-DAYS MONEY-BACK GUARANTEE for the product
Special 20% off discount is available in November 2008! Licensing prices are available as low as $98.95 per developer or web-site! Click here to find more

The following sample demonstrates how to use BarcodeWebImage1 control from Bytescout.BarCode SDK in ASP.NET application. BarcodeWebImage control is able to display barcodes in your ASP.NET application without temporary files required. Just add BarcodeWebImage control into Design mode in your ASP.NET application and set its properties and barcode will be displayed automatically

Barcode generated in ASP.NET

Barcode web control allows to generate/draw/save barcodes at server and serve it as an image without temporary files required.

See BarcodeWebImage control online help documentation for the detailed instruction

ASP.NET (Visual Basic code)

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="VBWebImageTester._Default" %>

<%@ Register Assembly="Bytescout.BarCode" Namespace="Bytescout.BarCode" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<cc1:barcodewebimage id="BarcodeWebImage1" runat="server" symbology="Code39" value="5712349"></cc1:barcodewebimage>

</div>
</form>
</body>
</html>

ASP.NET (C# code)

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BarcodeWebImageTester._Default" %>

<%@ Register Assembly="Bytescout.BarCode" Namespace="Bytescout.BarCode" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>BarcodeWebImage test page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<cc1:barcodewebimage id="BarcodeWebImage1" runat="server" RenderingHint="SystemDefault" SmoothingMode="Default" Value="DATA" ForeColor="Black" HorizontalAlignment="Right" Angle="Degrees0" CaptionPosition="Below" NarrowBarWidth="3" VerticalAlignment="Top" AddChecksum="False" AddChecksumToCaption="False" AdditionalCaptionPosition="Above" AdditionalCaptionFont="Arial, 13pt" BackColor="White" BarHeight="50" CaptionFont="Arial, 13pt" DrawCaption="True" WideToNarrowRatio="3" Symbology="Code128" AdditionalCaption=" "></cc1:barcodewebimage>

</div>
</form>
</body>
</html>

Download Free Trial Buy Now More Information
Shop safely: we provide 30-DAYS MONEY-BACK GUARANTEE for the product
Special 20% off discount is available in November 2008! Licensing prices are available as low as $98.95 per developer or web-site! Click here to find more

Documentation online: view (new window)

First steps tutorials:

Advanced Examples:
Products  |  Download  |  Purchase  |  Support  |  Contacts  |  Testimonials  |  News |  

ByteScout, 2003-2008. All other company and product names may be trademarks of their respective companies. Privacy Statement