|
| 1 | +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
| 2 | + |
| 3 | +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> |
| 4 | + |
| 5 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 6 | + |
| 7 | +<html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | +<head runat="server"> |
| 9 | +<link rel="Stylesheet" type="text/css" href="stylesheet.css" /> |
| 10 | + <title>Barcode Page</title> |
| 11 | + <style type="text/css"> |
| 12 | + .style1 |
| 13 | + { |
| 14 | + width: 129px; |
| 15 | + } |
| 16 | + .style3 |
| 17 | + { |
| 18 | + text-align: left; |
| 19 | + color: #0066FF; |
| 20 | + font-weight: bold; |
| 21 | + font-size: x-large; |
| 22 | + } |
| 23 | + </style> |
| 24 | + <script type="text/javascript" language="javascript"> |
| 25 | + function colorChanged(sender) |
| 26 | + { |
| 27 | + sender.get_element().style.backcolor = |
| 28 | + "#" + sender.get_selectedColor(); |
| 29 | + } |
| 30 | + </script> |
| 31 | +</head> |
| 32 | +<body> |
| 33 | + <form id="form1" runat="server"> |
| 34 | + <div> |
| 35 | + |
| 36 | + <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| 37 | + </asp:ScriptManager> |
| 38 | + <div class="style3"> |
| 39 | + Barcode Demo |
| 40 | + <asp:Label ID="lblLibraryVersion" runat="server" Text="[Library Version]"></asp:Label> |
| 41 | + </div> |
| 42 | + <table bgcolor="White"> |
| 43 | + <tr> |
| 44 | + <td style="background-color: #FFFFCC; border: 1px solid #000000"> |
| 45 | + <asp:UpdatePanel ID="panelInputs" runat="server"> |
| 46 | + <ContentTemplate> |
| 47 | + <table> |
| 48 | + <tr> |
| 49 | + <td class="style1"> |
| 50 | + <span lang="en-us">Value to Encode</span></td> |
| 51 | + <td> |
| 52 | + <span lang="en-us"> |
| 53 | + <asp:CheckBox ID="chkGenerateLabel" runat="server" Text="Generate Label" /> |
| 54 | + </span> |
| 55 | + </td> |
| 56 | + </tr> |
| 57 | + <tr> |
| 58 | + <td colspan="2"> |
| 59 | + <asp:TextBox ID="txtData" runat="server" Width="264px">038000356216</asp:TextBox> |
| 60 | + </td> |
| 61 | + </tr> |
| 62 | + <tr> |
| 63 | + <td class="style1" align="center"> |
| 64 | + <span lang="en-us">Encoding</span></td> |
| 65 | + <td align="center"> |
| 66 | + <span lang="en-us">Image Format</span></td> |
| 67 | + </tr> |
| 68 | + <tr> |
| 69 | + <td align="center"> |
| 70 | + <asp:DropDownList ID="cbEncodeType" runat="server"> |
| 71 | + <asp:ListItem>UPC-A</asp:ListItem> |
| 72 | + <asp:ListItem>UPC-E</asp:ListItem> |
| 73 | + <asp:ListItem>UPC 2 Digit Ext</asp:ListItem> |
| 74 | + <asp:ListItem>UPC 5 Digit Ext</asp:ListItem> |
| 75 | + <asp:ListItem>EAN-13</asp:ListItem> |
| 76 | + <asp:ListItem>JAN-13</asp:ListItem> |
| 77 | + <asp:ListItem>EAN-8</asp:ListItem> |
| 78 | + <asp:ListItem>ITF-14</asp:ListItem> |
| 79 | + <asp:ListItem>Interleaved 2 of 5</asp:ListItem> |
| 80 | + <asp:ListItem>Standard 2 of 5</asp:ListItem> |
| 81 | + <asp:ListItem>Codabar</asp:ListItem> |
| 82 | + <asp:ListItem>Postnet</asp:ListItem> |
| 83 | + <asp:ListItem>Bookland-ISBN</asp:ListItem> |
| 84 | + <asp:ListItem>Code 11</asp:ListItem> |
| 85 | + <asp:ListItem>Code 39</asp:ListItem> |
| 86 | + <asp:ListItem>Code 39 Extended</asp:ListItem> |
| 87 | + <asp:ListItem>Code 93</asp:ListItem> |
| 88 | + <asp:ListItem>Code 128</asp:ListItem> |
| 89 | + <asp:ListItem>Code 128-A</asp:ListItem> |
| 90 | + <asp:ListItem>Code 128-B</asp:ListItem> |
| 91 | + <asp:ListItem>Code 128-C</asp:ListItem> |
| 92 | + <asp:ListItem>LOGMARS</asp:ListItem> |
| 93 | + <asp:ListItem>MSI</asp:ListItem> |
| 94 | + <asp:ListItem>Telepen</asp:ListItem> |
| 95 | + <asp:ListItem>FIM (Facing Identification Mark)</asp:ListItem> |
| 96 | + </asp:DropDownList> |
| 97 | + </td> |
| 98 | + <td align="center"> |
| 99 | + <asp:DropDownList ID="ddlImageFormat" runat="server"> |
| 100 | + <asp:ListItem>GIF</asp:ListItem> |
| 101 | + <asp:ListItem>JPEG</asp:ListItem> |
| 102 | + <asp:ListItem>PNG</asp:ListItem> |
| 103 | + <asp:ListItem>TIFF</asp:ListItem> |
| 104 | + <asp:ListItem>BMP</asp:ListItem> |
| 105 | + </asp:DropDownList> |
| 106 | + </td> |
| 107 | + </tr> |
| 108 | + <tr> |
| 109 | + <td class="style1"> |
| 110 | + <asp:Button ID="btnEncode" runat="server" Text="Encode" Width="100px" |
| 111 | + onclick="btnEncode_Click" UseSubmitBehavior="False" /> |
| 112 | + </td> |
| 113 | + <td> |
| 114 | + </td> |
| 115 | + </tr> |
| 116 | + <tr> |
| 117 | + <td colspan="2"> |
| 118 | + <asp:Label ID="Label1" runat="server" Text="Alignment:"></asp:Label> |
| 119 | + |
| 120 | + <asp:RadioButton ID="rbAlignLeft" runat="server" GroupName="alignment" |
| 121 | + Text="Left" /> |
| 122 | + |
| 123 | + <asp:RadioButton ID="rbAlignCenter" runat="server" Checked="True" |
| 124 | + GroupName="alignment" Text="Center" /> |
| 125 | + |
| 126 | + <asp:RadioButton ID="rbAlignRight" runat="server" GroupName="alignment" |
| 127 | + Text="Right" /> |
| 128 | + </td> |
| 129 | + </tr> |
| 130 | + <tr> |
| 131 | + <td> |
| 132 | + <span lang="en-us">Foreground Color</span></td> |
| 133 | + <td> |
| 134 | + <span lang="en-us">Background Color</span></td> |
| 135 | + </tr> |
| 136 | + <tr> |
| 137 | + <td> |
| 138 | + <asp:TextBox ID="txtForeColor" runat="server" |
| 139 | + ReadOnly="False" BackColor="Black"></asp:TextBox> |
| 140 | + <cc1:ColorPickerExtender ID="ColorPickerExtender1" runat="server" |
| 141 | + TargetControlID="txtForeColor" OnClientColorSelectionChanged="colorChanged"/> |
| 142 | + </td> |
| 143 | + <td> |
| 144 | + <asp:TextBox ID="txtBackColor" runat="server" |
| 145 | + ReadOnly="False"></asp:TextBox> |
| 146 | + <cc1:ColorPickerExtender ID="ColorPickerExtender2" runat="server" |
| 147 | + TargetControlID="txtBackColor" OnClientColorSelectionChanged="colorChanged"/> |
| 148 | + </td> |
| 149 | + </tr> |
| 150 | + <tr> |
| 151 | + <td> |
| 152 | + <span lang="en-us">Width</span></td> |
| 153 | + <td> |
| 154 | + <span lang="en-us">Height</span></td> |
| 155 | + </tr> |
| 156 | + <tr> |
| 157 | + <td> |
| 158 | + <asp:TextBox ID="txtWidth" runat="server">300</asp:TextBox> |
| 159 | + </td> |
| 160 | + <td> |
| 161 | + <asp:TextBox ID="txtHeight" runat="server">150</asp:TextBox> |
| 162 | + </td> |
| 163 | + </tr> |
| 164 | + </table> |
| 165 | + </ContentTemplate> |
| 166 | + </asp:UpdatePanel> |
| 167 | + </td> |
| 168 | + <td style="border-color: #000000; border-width: 1px; border-top-style: solid; border-bottom-style: solid"> |
| 169 | + </td> |
| 170 | + <td style="border-color: #000000; border-width: 1px; border-top-style: solid; border-bottom-style: solid"> |
| 171 | + <asp:UpdatePanel ID="panelBarcode" runat="server"> |
| 172 | + <ContentTemplate> |
| 173 | + <asp:Image ID="BarcodeImage" runat="server" /> |
| 174 | + </ContentTemplate> |
| 175 | + </asp:UpdatePanel> |
| 176 | + </td> |
| 177 | + <td style="border-color: #000000; border-width: 1px; border-top-style: solid; border-bottom-style: solid; border-right-style: solid;"> |
| 178 | + </td> |
| 179 | + </tr> |
| 180 | + </table> |
| 181 | + <br /> |
| 182 | + |
| 183 | + </div> |
| 184 | + </form> |
| 185 | +</body> |
| 186 | +</html> |
0 commit comments