📄 livewebdemo.aspx
字号:
<%@ Register TagPrefix="bokai" Namespace="Bokai.Barcodes" Assembly="Bokai.Barcodes" %>
<%@ Page language="c#" Src="LiveWebDemo.aspx.cs" Inherits="WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Bokai Barcode.Net Live Demo</title>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body topmargin="0" bgcolor="#FFFFFF" vlink="#0066FF" link="#0066FF" ulink="#0066FF" alink="#00FF00">
<table cellspacing="0" cellpadding="0">
<tr valign="top">
<td bgcolor="#FFCC00" align="left">
<font face="verdana,helvetica,arial" size="+1"><i><a href="http://www.bokai.com/">Bokai Corporation</a></i></font>
</td>
<td bgcolor="#FFCC00" align="right">
See Also: <a href="BarcodeAspxSample.htm">Barcode.aspx Sample</a>
| <a href="BarcodeHandlerSample.htm">BarcodeHandler Sample</a>
</td>
</tr>
<tr><td colspan="2"><font size="1"> </font></td>
</tr>
<tr><td colspan="2">
<h2><a href="http://www.bokai.com/barcode.net.htm">Barcode .Net</a>
Live Demo
</h2>
</td></tr>
<tr><td colspan="2">
<bokai:BarcodeImage id="barcodeImage1" runat="server" />
<br>
<font size="-1"><i>
<asp:hyperlink id="barcodeURL" Text="Image URL:" Runat="server" NavigateUrl="" />
</i></font>
<br>
<textarea runat="server" rows="3" id="barcodeUrlArea" readonly wrap="soft" cols="73"></textarea>
</td></tr>
</table>
<asp:label id="Debug" runat="server" Text="" ToolTip="Debug print." Visible="False" />
<br>
<form id="barcodeForm" method="post" runat="server">
<asp:Button id="submitButton1" Text="Regenerate" runat="server" />
<input type="button" id="resetButton1" OnClick="location=location;" value="Reset">
<i>Generation Method:</i> <asp:dropdownlist id="Generator" runat="server">
<asp:listitem Selected="True" Value="file">File: Barcode.aspx</asp:listitem>
<asp:listitem Value="handler">HTTP Handler: BarcodeHandler</asp:listitem>
</asp:DropDownList>
<table style="BORDER-COLLAPSE: collapse" cellSpacing="0" border="0">
<tr valign="top">
<td>
<table id="MyList" style="BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #ccccff" cellSpacing="0" rules="all" border="1">
<tr style="BACKGROUND-COLOR: #aaaadd">
<td align="middle">URL Parameter</td>
<td align="middle">Value</td>
</tr>
<tr>
<td align="right"><asp:label id="Label1" runat="server" Text="BarcodeType" ToolTip="Specifies the barcode type for the barcode image to be generated." Font-Italic="True" ForeColor="#0000ff"></asp:label></td>
<td><asp:dropdownlist id="BarcodeType" runat="server">
<asp:listitem>EAN13</asp:listitem>
<asp:listitem>EAN8</asp:listitem>
<asp:listitem>UPCA</asp:listitem>
<asp:listitem>CODE39CHECK</asp:listitem>
<asp:listitem>CODABAR</asp:listitem>
<asp:listitem Selected="True">CODE39</asp:listitem>
<asp:listitem>C2OF5</asp:listitem>
<asp:listitem>INTERLEAVED2OF5</asp:listitem>
<asp:listitem>UPCE</asp:listitem>
<asp:listitem>EAN13_2</asp:listitem>
<asp:listitem>EAN13_5</asp:listitem>
<asp:listitem>EAN8_2</asp:listitem>
<asp:listitem>EAN8_5</asp:listitem>
<asp:listitem>UPCA_2</asp:listitem>
<asp:listitem>UPCA_5</asp:listitem>
<asp:listitem>UPCE_2</asp:listitem>
<asp:listitem>UPCE_5</asp:listitem>
<asp:listitem>EAN128A</asp:listitem>
<asp:listitem>EAN128B</asp:listitem>
<asp:listitem>EAN128C</asp:listitem>
<asp:listitem>CODE93</asp:listitem>
<asp:listitem>POSTNET</asp:listitem>
<asp:listitem>CODE128A</asp:listitem>
<asp:listitem>CODE128B</asp:listitem>
<asp:listitem>CODE128C</asp:listitem>
</asp:dropdownlist></td>
</tr>
<tr>
<td align="right"><asp:label id="Label2" runat="server" Text="Data" ToolTip="Specifies the barcode data." Font-Italic="True" ForeColor="#0000ff"></asp:label></td>
<td><asp:textbox id="Data" Text="" Runat="server" ToolTip="Any character native to a barcode type (e.g., Code-128) may be entered using the ANSI Western or UNICODE character whose code is that of the native character plus 128."></asp:textbox></td>
</tr>
<tr>
<td align="right"><asp:label id="Label3" Text="AddOnData" Runat="server" ToolTip="Specifies the add-on barcode data if the barcode type has an add-on barcode." Font-Italic="True" ForeColor="#0000ff"></asp:label></td>
<td><asp:textbox id="AddOnData" Text="" Runat="server"></asp:textbox></td>
</tr>
<tr>
<td align="right"><asp:label id="Label4" Text="ImageFormat" Runat="server" ToolTip="Specifies the image format the barcode is to be generated in." Font-Italic="True" ForeColor="#0000ff"></asp:label></td>
<td><asp:dropdownlist id="ImageFormat" runat="server">
<asp:listitem>GIF</asp:listitem>
<asp:listitem>JPEG</asp:listitem>
<asp:listitem>PNG</asp:listitem>
<asp:listitem>TIFF</asp:listitem>
<asp:listitem>BMP</asp:listitem>
</asp:dropdownlist></td>
</tr>
<tr>
<td align="right"><asp:label id="Label5" Text="BarWidth" Runat="server" ToolTip="Specifies the width of the narrowest barcode bar in pixels; the default is 1. If you specify BarWidth, you should not specify Width at the same time." Font-Italic="True" ForeColor="#0000ff"></asp:label></td>
<td><asp:textbox id="BarWidth" Text="1" Runat="server" Columns="1"></asp:textbox></td>
</tr>
<tr>
<td align="right"><asp:label id="Label7" Text="Height" Runat="server" ToolTip="Height of the barcode in pixels." Font-Italic="True" ForeColor="#0000ff"></asp:label></td>
<td><asp:textbox id="Height" Text="40" Runat="server"></asp:textbox></td>
</tr>
<tr>
<td align="right"><asp:label id="Label6" Text="Orientation" Runat="server" ToolTip="Specifies the orientation of the barcode." Font-Italic="True" ForeColor="#0000ff"></asp:label></td>
<td><asp:dropdownlist id="Orientation" runat="server">
<asp:listitem>BottomFacing</asp:listitem>
<asp:listitem>RightFacing</asp:listitem>
<asp:listitem>TopFacing</asp:listitem>
<asp:listitem>LeftFacing</asp:listitem>
</asp:dropdownlist></td>
</tr>
<tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -