Example
Source
Run as server control
DbNetFile
can be added to any web page as a client-side object with just a few lines of code. Simply specify the virtual folder that you want to be able to browse and
DbNetFile
will do the rest.
Include the Javascript library file
<script src="../dbnetfile.js"></script>
Client-side script
window.onload = initFile /////////////////////////////////////////////////////////////////////////////// function initFile() /////////////////////////////////////////////////////////////////////////////// { var dbnetfile1 = new DbNetFile( "dbnetfile1" ) with ( dbnetfile1 ) { rootFolder = virtualDir + "files" initialise() } }
HTML
<div id=dbnetfile1></div>