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.
Comments: Hi. Did you solve this issue. I am having the same problem and having to jump through hoops to make it work with the result it all looks very untidy. Labels are losing their value, Global Static variables are being reset !!!!!! regards Iain
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.
Comments: Hi. Did you solve this issue. I am having the same problem and having to jump through hoops to make it work with the result it all looks very untidy. Labels are losing their value, Global Static variables are being reset !!!!!! regards Iain