<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_fileUpload.ascx.cs" Inherits="NKC_WF.WebUserContols.cmp_fileUpload" %>

<asp:HiddenField runat="server" ID="hfWriteEnabled" />
<asp:HiddenField runat="server" ID="hfForceRedirect" />
<asp:HiddenField runat="server" ID="hfFilePrefix" />
<asp:HiddenField runat="server" ID="hfFileSuffix" />
<div id="divFileUpl" runat="server" class="d-flex flex-row-reverse">
    <div class="px-2">
        <asp:LinkButton ID="lbtCancel" runat="server" Text="Annulla" OnClick="btnCancel_Click" CssClass="btn btn-warning form-control"><%: traduci("cancel") %> <i class="fa fa-ban" aria-hidden="true"></i></asp:LinkButton>
    </div>
    <div class="px-2 flex-grow-1">
        <asp:FileUpload ID="FileUpload1" runat="server" CssClass="form-control py-1" />
    </div>
    <div class="px-2">
        <asp:LinkButton ID="lbtUpload" runat="server" Text="Upload" OnClick="Upload" CssClass="btn btn-success form-control"><%: traduci("doUpload") %> <i class="fa fa-check" aria-hidden="true"></i></asp:LinkButton>
    </div>
</div>
<div id="divNewEdit" runat="server" class="d-flex flex-row-reverse">
    <div class="px-2">
        <asp:LinkButton ID="btnAdd" runat="server" OnClick="btnAdd_Click" CssClass="btn btn-info form-control"><%: traduci("UploadFile") %> <i class="fa fa-upload" aria-hidden="true"></i></asp:LinkButton>
    </div>
</div>
<div id="divMessagge" runat="server" class="bg-danger border border-danger text-center my-2">
    <asp:Label runat="server" ID="lblMessage" CssClass="text-warning" />
</div>