Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Created Unassigned: ASP regular controls not working with AjaxfileUpload [27689]

$
0
0
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.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>