Click here to Skip to main content
15,905,914 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to write the code for fileupload is empty
Posted
Comments
OriginalGriff 12-Apr-13 5:45am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
Member 2707515 12-Apr-13 5:55am    
actually u not able to understand a question

You can check FileUpload.HasFile Property[^] for that.
Example:
C#
if(FileUpload1.HasFile)//If your fileupload control contains the file
{
    //Code for upload the file.
}
else
{
    //Code for showing error message.
}


--Amit
 
Share this answer
 
VB
Dim uploadControl As FileUpload = CType(gvOrderList.Rows(index).FindControl("fileUploadNm"), FileUpload)
            If uploadControl.HasFile Then

End If
 
Share this answer
 
If fuUpload.hasFile() then

Your Code

Else
Message
End If
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900