Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Ajax Uploader
»
Re: Disabling/Enabling Server side button following file attachment
Re: Disabling/Enabling Server side button following file attachment
09-27-2010, 3:22 AM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Disabling/Enabling Server side button following file attachment
Reply
Quote
Hi ssoutrs,
Try this example
<%@ 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 runat=
"server"
>
<title>Untitled Page</title>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<div>
<CuteWebUI:UploadAttachments runat=
"server"
ManualStartUpload=
"true"
ID=
"Uploader1"
InsertText=
"Browse Files"
>
</CuteWebUI:UploadAttachments><br />
<input type=
"button"
value=
"Upload"
onclick=
"submitUpload()"
disabled=
"disabled"
id=
"startUpload"
/>
</div>
</form>
</body>
</html>
<script>
function submitUpload()
{
var uploader1=document.getElementById(
"<%= Uploader1.ClientID %>"
);
uploader1.startupload();
}
function CuteWebUI_AjaxUploader_OnSelect(files)
{
var startUpload=document.getElementById(
"startUpload"
);
startUpload.disabled=
""
;
}
</script>
Regards,
ken
View Complete Thread