Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Ajax Uploader
»
Re: Show Progress label when saving to database
Re: Show Progress label when saving to database
06-25-2010, 1:23 AM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Show Progress label when saving to database
Reply
Quote
Hi Burken,
Try this way
<%@ Page Language=
"C#"
%>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head id=
"Head1"
runat=
"server"
>
<title>Untitled Page</title>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<CuteWebUI:UploadAttachments ID=
"attachemnt1"
runat=
"server"
>
</CuteWebUI:UploadAttachments><br />
<asp:Label ID=
"label1"
runat=
"server"
></asp:Label>
</form>
</body>
</html>
<script>
var label1 = document.getElementById(
"<%= label1.ClientID %>"
);
function CuteWebUI_AjaxUploader_OnProgress(enable,filename,begintime,uploadedsize,totalsize)
{
if
(enable)
{
if
(totalsize)
{
label1.innerHTML=filename+
" - "
+Math.floor(100*uploadedsize/totalsize)+
'%'
}
}
}
</script>
Regards,
ken
View Complete Thread