img.hasfile
if (img.HasFile && img.PostedFile != null)what is it meaning?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guest UserPosted Apr 15, 2011, 3:52 PM
That line of code is used to determine if the user has uploaded a file with the img control. More details here: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.postedfile.aspx#Y456