我想在使用AjaxControlToolkit中的AsyncFileUpload組件將文件上載到服務器後設置標籤文本值。但它接近它是無效的,雖然文件上傳在上傳後是綠色的,並且上傳工作。AjaxControlToolkit AsyncFileUpload - 如何修改UploadedComplete事件中的標籤文本值
protected void AsyncFileUpload1_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
{
string filename = System.IO.Path.GetFileName(AsyncFileUpload1.FileName);
AsyncFileUpload1.SaveAs(Server.MapPath("Uploads/") + filename);
sourceLabel.Text="saved to "+filename; //this has no effect. I assume this is because the event is Async, but how can I set the value of sourceLabel?
}