<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Documents.ascx.vb" Inherits="Documents" %>
<script language="javascript" type="text/javascript">
function confirmDocumentDelete()
{
    return confirm('Delete this document?')
}
</script>
<table border="1" cellspacing="0" cellpadding="5">
<tr><td>
<asp:Label ID="documentsLabel" runat="server" EnableViewState="False" Text="Documents" Font-Bold="True"></asp:Label>
<br />
<br />
<asp:ListBox ID="documentsListBox" runat="server" AutoPostBack="True" Height="70px"></asp:ListBox>
<br />
    <asp:Button ID="btnClearSelection" runat="server" Text="Clear Selection" />
<br />
    <asp:Label ID="lblErrorMessage" ForeColor="red" runat="server" Text="Label" Visible="false"></asp:Label>
<br />
<asp:CheckBox ID="chkFileType" runat="server"  Text="Binary Document" Checked="true"  />
  &nbsp;
  <asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Button ValidationGroup="Upload" ID="btnUpload" runat="server" Text="Upload" EnableTheming="false" />
<asp:Button ValidationGroup="Upload" ID="btnUploadUpdate" runat="server" Text="Upload Update to selected document" EnableTheming="false" Visible="false" />
 <br />
<asp:RequiredFieldValidator ValidationGroup="Upload" ID="vldFileRequired" runat="server" ControlToValidate="FileUpload1" ErrorMessage="Please select a file"></asp:RequiredFieldValidator> &nbsp;

<asp:Button ID="newButton" runat="server" Text="New" Enabled="False" />
<asp:Button ID="deleteButton" runat="server" Text="Delete" Enabled="False" OnClientClick="return confirmDocumentDelete();" />
<asp:Label ID="folderLabel" runat="server" EnableTheming="False" EnableViewState="False" Text="Folder:"></asp:Label>
<asp:DropDownList ID="folderDropDownList" runat="server" EnableTheming="False" Enabled="False"></asp:DropDownList>
<asp:Button ID="moveButton" runat="server" Text="Move" Enabled="False" />
</td></tr></table>
