Barcode IMG Server for IIS may be used to include barcode images on ASP.NET pages and a sample application is included with the distribution.
The principal requirements for generating the images are:
The .apsx page must start with code containing at least (although any language is suitable)
<%@ Page Language="VB" aspcompat=true %>
<%@
Import Namespace="System.Data" %>
<%@ Import Namespace="System.Web"
%>
2. The vntStream and ht variables must be global for the Session, and so must be declared, either in global.asax or global.vb
Dim m_barcode
Dim vntStream
Dim ht As Integer
3. Barcode properties may be set between the tags
<head>
<script language="VB" runat="server"
>
………
Session("vntStream")=m_barcode.Pic(0)
Session("ht")=(m_barcode.PictureHeight)
</script>
</head>
If the barcode is to change during the page’s lifetime then the code calling m_barcode.Pic(n) should be called during PostBack
4. The HTML code displaying the barcode should appear somewhere between <body> tags
<body>
………….
<IMG SRC="barcd0v1.aspx"
HEIGHT=" <% =Session("ht") %> ">
………….
</body>
More: