Hi krajiv23,
Please try the example page below, it shows you how to achieve this requirement. I use a button as the uploader button by property "InsertButtonID". And changed the text of this button when uploading and upload complete.
- <%@ Page Language="C#" %>
-
- <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
- <!DOCTYPE html>
-
- <script runat="server">
- protected void uploader1_UploadCompleted(object sender, UploaderEventArgs[] args)
- {
-
- btnUpload.Text = "Upload Completed";
- }
- </script>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>Untitled Page</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <CuteWebUI:Uploader runat="server" ID="uploader1" InsertButtonID="btnUpload" OnUploadCompleted="uploader1_UploadCompleted">
- </CuteWebUI:Uploader>
- <asp:Button ID="btnUpload" runat="server" Text="select file" />
- </div>
- </form>
- </body>
- </html>
- <script type="text/javascript">
- function CuteWebUI_AjaxUploader_OnStart() {
- var btnUpload = document.getElementById("<%= btnUpload.ClientID%>");
-
- btnUpload.value = "Uploading......";
- }
- </script>
Regards,
Ken