title: Not able to display label message on success/failure of AjaxFileUpload in ASP.NET
body: <p>I want to upload a file using <code>AjaxFileUpload</code> control. This works fine.The problem is i am not able to display the success/failure message on <code>Label</code> of file uploaded.</p>
  
  <p>.aspx code..</p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
      &lt;div&gt;&lt;/div&gt;
          &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
          &lt;/asp:ScriptManager&gt;
          &lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"&gt;
              &lt;ContentTemplate&gt;
                  &lt;asp:Label runat="server" ID="myThrobber" Style="display: none;"&gt;&lt;img align="absmiddle" alt="" src="images/uploading.gif"/&gt;&lt;/asp:Label&gt;
                  &lt;asp:AjaxFileUpload ID="AjaxFileUpload1" 
                      runat="server" 
                      OnUploadComplete="AjaxFileUpload1_UploadComplete" 
                      OnClientUploadError="uploadError" 
                      OnClientUploadComplete="uploadComplete"
                      ThrobberID="myThrobber"
                      MaximumNumberOfFiles="1"
                      AllowedFileTypes="" 
                      class="name_text1" 
                      Width="200px" /&gt;
                  &lt;asp:Label ID="Label1" runat="server" Text=""&gt;&lt;/asp:Label&gt;
                  &lt;asp:Button ID="BtnClose" runat="server" Text="Close" 
                     onclick="BtnClose_Click" OnClientClick="Closepopup()"/&gt;
  
                  &lt;asp:Label ID="Label2" runat="server" Text=""&gt;&lt;/asp:Label&gt;
  
                  &lt;br /&gt;
              &lt;/ContentTemplate&gt;
          &lt;/asp:UpdatePanel&gt;
  
      &lt;/div&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>i want to display text on Label2 that file uploaded or not.
  my .cs code:</p>
  
  <pre><code>protected void AjaxFileUpload1_UploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
      {
   string message = "Storege Space is Exceeding its Limit";
                      Label2.Text = message;
  }
  </code></pre>
  
  <p>How to display message on <code>Label</code> ? Any Suggesstion? Help appreciated</p>