<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Wijmo.Master" CodeBehind="EncodingException.aspx.cs" Inherits="ControlExplorer.C1QRCode.EncodingException" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.4" Namespace="C1.Web.Wijmo.Controls.C1QRCode" TagPrefix="wijmo" %>
<%@ Register Src="~/ServerSideLogger.ascx" TagPrefix="uc1" TagName="ServerSideLogger" %>

<asp:Content ContentPlaceHolderID="Head" ID="Content1" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" ID="Content2" runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
	<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
			<ContentTemplate>
        <br />
		<wijmo:C1QRCode ID="C1QRCode1" runat="server" width="100px" Height="100px" CssClass="serversidelogger-before"/>
		<uc1:ServerSideLogger runat="server" id="ServerSideLogger" Title="The Encoding Exception Message:"/>
        <br />
			</ContentTemplate>
		</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Description" Runat="Server">
    <p>
        <strong>C1QRCode </strong>provides a QR code image which is encoded according to a special string value.
    </p>
    <p>
	    When use Numeric encoding mode to encode an alpha-numerice text, Encoding Exception will occur.
		We can get the exception details by <b>EncodingException</b> property.
    </p>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ControlOptions" Runat="Server">
	<asp:UpdatePanel ID="UpdatePanel2" runat="server">
			<ContentTemplate>
<div class="settingcontainer">
<div class="settingcontent">
	<ul>
		<li>
			<label>Encoding:</label>
			<asp:dropdownlist id="DdlEncoding" runat="server">
				<asp:ListItem Selected="True">Automatic</asp:ListItem>
				<asp:ListItem>AlphaNumeric</asp:ListItem>
				<asp:ListItem>Numeric</asp:ListItem>
				<asp:ListItem>Byte</asp:ListItem>
			</asp:DropDownList>
        </li>
		<li class="fullwidth autoheight">
			<label>Input the Text you want to encode:</label>
		</li>
		<li class="fullwidth"><asp:TextBox ID="TxtText" TextMode="MultiLine" runat="server" Text="C1QRCode"></asp:TextBox>
        </li>
	</ul></div>
	<div class="settingcontrol">
	<asp:Button ID="ApplyBtn" Text="Apply" CssClass="settingapply" runat="server" OnClick="ApplyBtn_Click"/>
	</div>
</div>
			</ContentTemplate>
		</asp:UpdatePanel>
</asp:Content>
