I am using AjaxFileUpload toolkit to upload the files. Uploading works fine but my label control doesnt work. This is what i have.
protected void File_Upload(object sender, AjaxFileUploadEventArgs e) {
string filename = e.FileName;
string filename1 = @"C:\" + filename;
AjaxFileUpload1.SaveAs(filename1);
//>>>> This lable doesnt appear after uploading file completes <<<<<
label1.Visible = true;
}
<asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server" AllowedFileTypes="xml"
MaximumNumberOfFiles="10" OnUploadComplete="File_Upload"
Width="500px" />
<asp:Label runat="server" ID="label1" Style="position:absolute;top:30px; left:600px" Text="checking"></asp:Label>
If I comment out FileUpload function and make label visible in page_load, label appears but I want it to appear right after uploading finishes.
protected void File_Upload(object sender, AjaxFileUploadEventArgs e) {
string filename = e.FileName;
string filename1 = @"C:\" + filename;
AjaxFileUpload1.SaveAs(filename1);
//>>>> This lable doesnt appear after uploading file completes <<<<<
label1.Visible = true;
}
<asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server" AllowedFileTypes="xml"
MaximumNumberOfFiles="10" OnUploadComplete="File_Upload"
Width="500px" />
<asp:Label runat="server" ID="label1" Style="position:absolute;top:30px; left:600px" Text="checking"></asp:Label>
If I comment out FileUpload function and make label visible in page_load, label appears but I want it to appear right after uploading finishes.