AsyncFileUpload and Label which is Runat Server

Posted by Anu_dgr8 under Regular Expressions on 6/24/2010 | Views : 2100 | Status : [Member] | Replies : 1
on AsyncFileUpload_UploadedComplete event of ASyncFileUpload,I am doin the followin:

string filepath=MapPath("~/Uploads/") + AsyncFileUpload1.FileName;
if (AsyncFileUpload1.HasFile)
if (!File.Exists(filepath))
//file upload logic

lblMsg.Text = "File with the same name already uploaded.";


When i Run the code in browser->the lblMsg.Text IS GETTING SET TO "File with the same name already uploaded."...BUT ITS NOT SHOWING IN THE BROWSER..PLEASE HELP

Thanks and Regards,
Hoosha Boosha


Posted by: Vuyiswamb on: 11/25/2010 [Member] [MVP] [Administrator] NotApplicable | Points: 25

is the visibility Property of that Label "true" ?

Thank you for posting at Dotnetfunda

Anu_dgr8, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response