imagecontrolsample.htm

来自「非常实用的条形码制作工具」· HTM 代码 · 共 49 行

HTM
49
字号
<HTML>
<HEAD>
<META HTTP-EQUIV="Expires" CONTENT="0">
<title>BarcodeImage Web Server Control Sample</title>
</HEAD>
<BODY>
<h1>BarcodeImage Web Server Control Sample</h1>
This sample demonstrates the use of the <b>BarcodeImage</b> web server control.
<p>
Typically, you would drop BarcodeImage on a web form in Visual Studio
in a web application.
</p>
<p>
<img src="WebSample3.jpg">
</p>
<p>
This would generate HTML code like this,
</p>
<pre>
&lt;%@ Page language="c#" Codebehind="WebForm1.aspx.cs" 
  AutoEventWireup="false" 
  Inherits="Bokai.Barcodes.WebSample3.WebForm1" %&gt;
&lt;%@ Register TagPrefix="bokai" Namespace="Bokai.Barcodes" 
  Assembly="Bokai.Barcodes" %&gt;
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &gt;
&lt;HTML&gt;
  &lt;HEAD&gt;
    &lt;title&gt;WebForm1&lt;/title&gt;
    &lt;meta name="GENERATOR" Content="Microsoft Visual Studio 7.0"&gt;
    &lt;meta name="CODE_LANGUAGE" Content="C#"&gt;
    &lt;meta name="vs_defaultClientScript" content="JavaScript"&gt;
    &lt;meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"&gt;
  &lt;/HEAD&gt;
  &lt;body MS_POSITIONING="GridLayout"&gt;
    &lt;form id="WebForm1" method="post" runat="server"&gt;
      &lt;bokai:BarcodeImage id="BarcodeImage1" runat="server" Width="242px" 
        Height="64px" BarcodeType="UPCA_2" AddOnData="56" 
        Data="12345678901"&gt;
      &lt;/bokai:BarcodeImage&gt;
    &lt;/form&gt;
  &lt;/body&gt;
&lt;/HTML&gt;
</pre>

You can manippulate the BarcodeImage instance in code just as you would a control
in a Windows Forms application, by setting properties and calling methods on it.
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?