<%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="Telerik.WordsProcessing.ConvertDocuments.DefaultCS" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
<link href="styles.css" rel="stylesheet" />
<script src="scripts.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<div id="SpreadProcessing" class="demo-container">
<telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ID="RadAsyncUpload1" HideFileInput="true" OnClientFileUploaded="demo.OnClientFileUploaded" OnClientValidationFailed="demo.OnClientValidationFailed"
OnFileUploaded="RadAsyncUpload1_FileUploaded" AllowedFileExtensions=".docx,.rtf,.txt,.html" />
<div class="fileImages">
<span class="column">
<telerik:RadButton RenderMode="Lightweight" ID="Button1" Text="Load Custom Document" AutoPostBack="false" OnClientClicked="demo.UploadFile" runat="server"
ToolTip="Please load a file with one of the following extensions: .docx, .rtf, .html or .txt" />
<span class="imageContainer">
<asp:Image ImageUrl="./Images/CustomDocument_file.png" CssClass="documentImage" ID="CustomDocumentImage" runat="server" />
</span>
</span>
<asp:Label Text="- OR -" ID="OrLabel" runat="server" />
<span class="column">
<telerik:RadButton RenderMode="Lightweight" Text="Load Template Document" ID="LoadSampleDocumentButton" AutoPostBack="false" OnClientClicked="demo.UploadSampleDocument" runat="server" />
<span class="imageContainer">
<asp:Image ImageUrl="./Images/SampleDocumentImage.png" ID="SampleDocumentImage" runat="server" />
</span>
</span>
</div>
<hr />
<div class="converTo">
<asp:Label ID="Label1" Text="Convert to:" runat="server" />
<telerik:RadComboBox RenderMode="Lightweight" ID="ExtensionsRadComboBox" runat="server" Width="140px">
<Items>
<telerik:RadComboBoxItem Value=".docx" Text="DOCX" />
<telerik:RadComboBoxItem Value=".rtf" Text="RTF" />
<telerik:RadComboBoxItem Value=".html" Text="HTML" />
<telerik:RadComboBoxItem Value=".txt" Text="TXT" />
</Items>
</telerik:RadComboBox>
</div>
<span>File: </span>
<asp:Label Text="" ID="FileLabel" runat="server" />
<hr style="clear: both;" />
<telerik:RadButton RenderMode="Lightweight" Text="Download" ID="DownloadButton" OnClientClicking="demo.CheckDownload" OnClick="SaveButton_Click" runat="server" CssClass="downloadBtn rbPrimaryButton" />
</div>
</form>
</body>
</html>