<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Uploader.aspx.vb" Inherits="EnsinoBasico.Uploader" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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></title>

    <script src="Resources.Gizmox.WebGUI.Forms.Skins.CommonSkin.Interfaces.js.wgx" type="text/javascript"></script>

    <script type="text/javascript">
        function RaiseEvents() {
            VWG.Events.RaiseEvents();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="server" ID="RadScriptManager2" />
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="false" />

        <div class="demo-container size-narrow" runat="server" id="DemoContainer1">
            <telerik:RadAsyncUpload HideFileInput="false" RenderMode="Lightweight" runat="server" ID="AsyncUpload1" MultipleFileSelection="Automatic" ChunkSize="2048576"
            OnFileUploaded="FileUploaded" TemporaryFileExpiration="01:00:00" Width="390"
            Localization-Cancel="Cancelar" Localization-Remove ="Remover" Localization-Select="Selecionar" Localization-DropZone= "Arrastar ficheiros para aqui"
            PostbackTriggers="RadButton1" OnClientFileUploaded="fileSelected"/>
           <%-- OnClientFileUploaded="fileSelected"--%>
        </div>

        <asp:Button runat="server" ID="RadButton1" Text="Confirmar" Enabled="false" style="margin-top:15px;"/>
    </div>

    <telerik:RadCodeBlock ID="CodeBlock1" runat="server">
    <script type="text/javascript">
     function fileSelected(sender, args) {
            var btn = document.getElementById("<%=RadButton1.ClientID%>");
            btn.disabled = false;
        }
    </script>
    </telerik:RadCodeBlock>

    </form>
</body>
</html>