<script type="text/javascript" language="javascript">
function uploadError(sender,args) { document.getElementById('lblStatus').innerText = args.get_fileName(), "<span style='color:red;'>" + args.get_errorMessage() + "</span>"; addToClientTable(args.get_fileName(), "<span style='color:red;'>" + args.get_errorMessage() + "</span>");
}
function StartUpload(sender,args) { document.getElementById('lblStatus').innerText = 'Uploading Started.'; }
function UploadComplete(sender,args) { var filename = args.get_fileName(); var contentType = args.get_contentType(); var text = "Size of " + filename + " is " + args.get_length() + " bytes"; if (contentType.length > 0) { text += " and content type is '" + contentType + "'."; } document.getElementById('lblfilename').innerText = filename; document.getElementById('lblStatus').innerText = text; addToClientTable(args.get_fileName(), text); }
function fillCell(row, cellNumber, text) { var cell = row.insertCell(cellNumber); cell.innerHTML = text; cell.style.borderBottom = cell.style.borderRight = "solid 1px #aaaaff"; } function addToClientTable(name, text) { var table = document.getElementById("<%= clientSide.ClientID %>"); var row = table.insertRow(0); fillCell(row, 0, name); fillCell(row, 1, text); }
</script>
|