Hi,
If you want to avoid the page postback, I suggest you use it with the ajax UpdatePanel control.
If you want to hide the uploader after uploaded, please try the way below.
- <%@ Page Language="C#" AutoEventWireup="True" %>
-
- <%@ Register Assembly="CuteWebUI.AjaxUploader" Namespace="CuteWebUI" TagPrefix="ajaxuploader" %>
- <html>
- <head>
- <script runat="server">
- protected void uploader1_UploadCompleted(object sender, UploaderEventArgs[] args)
- {
- panel1.Visible = false;
- }
- </script>
- </head>
- <body>
- <form id="Form1" runat="server">
- <asp:Panel ID="panel1" runat="server">
- <CuteWebUI:UploadAttachments ID="uploader1" runat="server" OnUploadCompleted="uploader1_UploadCompleted"></CuteWebUI:UploadAttachments>
- </asp:Panel>
-
- </form>
- </body>
- </html>
Regards,
Ken