<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomValidationUpload.aspx.cs" Inherits="CustomValidationUpload" %>

<%@ Register Assembly="RadUpload.Net2" Namespace="Telerik.WebControls" TagPrefix="radU" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
    <title>Telerik: RadUpload CustomValidation</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table>
                <tr>
                    <td>
                        <radU:RadUpload ID="RadUpload1" runat="server" 
                        LocalizationPath="RadControls/Upload//Localization"
                           SkinsPath="~/RadControls/Upload/Skins" 
                           ControlObjectsVisibility="All" 
                           TargetFolder="~/MyUploadedFiles"
                           OnValidatingFile="RadUpload1_ValidatingFile" MaxFileSize="1024" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="statusLabel" runat="server"></asp:Label>
                        <asp:Label ID="errorLabel" runat="server"></asp:Label>
                        <asp:Button ID="Button1" runat="server" Text="Upload" OnClick="Button1_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
