Hi kalees1980,
Please try the example below, it shows you how to achieve your requirement.
- <%@ Page Language="C#" %>
-
- <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- </head>
- <body>
- <form id="Form1" runat="server">
- <CuteWebUI:UploadAttachments ID="uploader1" runat="server" InsertText="uploader1">
- </CuteWebUI:UploadAttachments>
- <CuteWebUI:UploadAttachments ID="uploader2" runat="server" InsertText="uploader2">
- </CuteWebUI:UploadAttachments>
- </form>
- </body>
- </html>
-
- <script>
- var uploader1=document.getElementById("<%= uploader1.ClientID %>");
- var uploader2=document.getElementById("<%= uploader2.ClientID %>");
- function CuteWebUI_AjaxUploader_OnStart()
- {
- var hidden=this;
- if(hidden.id=="uploader1")
- {
-
- uploader2.internalobject.insertBtn.disabled="disabled";
- }
- else
- {
-
- uploader1.internalobject.insertBtn.disabled="disabled";
- }
- }
- </script>
Regards,
Ken