Hi jerry2,
Try the example below, in asp version there is not method the get the instance of the upload file, so you need to save it first.
<%@ language="VBScript" %>
<!-- #include file="aspuploader/include_aspuploader.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>example</title>
</head>
<body>
<div>
<img src="" id="image1" style="visibility: hidden" /><br />
<%
Dim uploader
Set uploader=new AspUploader
uploader.Name="myuploader"
uploader.MaxFilesLimit=1
uploader.MaxSizeKB=102
uploader.InsertText="Upload File (Max 10M)"
uploader.AllowedFileExtensions="*.jpg,*.png,*.gif,*.zip"
uploader.SaveDirectory="savefiles"
uploader.render()
%>
<br />
<br />
<input type="button" value="Save info" onclick="saveInfo()" />
<script type='text/javascript'>
var imageName;
var uploader = document.getElementById("myuploader");
uploader.handlequeueui = myqueueuihandler;
function saveInfo() {
}
function CuteWebUI_AjaxUploader_OnSelect(files) {
imageName = files[0].FileName;
}
function CuteWebUI_AjaxUploader_OnPostback() {
var image1 = document.getElementById("image1");
image1.style.visibility = "visible";
image1.src = "savefiles/" + imageName;
}
function myqueueuihandler(list) {
// hide the queue table
return false;
}
</script>
</div>
</body>
</html>
Regards,
Ken