Hi davior14,
Please try the example below, does it work for you?
When you click on the post back button, the page will do a post back, and the label text will be changed to "post back!". But when I upload a file, the text has not changed, it means that the page has not do the post back.
If it only happens on your page, please create an simple example which can reproduce this issue and post here. I will check it and get back to you as soon as possible.
- <%@ Page Language="C#" %>
-
- <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
- <script runat="server">
-
- protected void Page_Load(object sender, EventArgs e)
- {
-
- if (!IsPostBack)
- {
- label1.Text = "first load!";
- }
- else
- {
- label1.Text = "post back!";
- }
- }
- </script>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>Untitled Page</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:Button ID="btnPostBack" runat="server" Text="Post back" />
- <asp:Label ID="label1" runat="server"></asp:Label>
- <asp:ScriptManager ID="ScriptManager1" runat="server">
- </asp:ScriptManager>
- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
- <ContentTemplate>
- <CuteWebUI:UploadAttachments ID="uploader1" runat="server">
- </CuteWebUI:UploadAttachments>
- </ContentTemplate>
- </asp:UpdatePanel>
- </div>
- </form>
- </body>
- </html>
Regards,
Ken