Click here to Skip to main content
15,908,843 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've a problem when uploading file,
After UploadedComplete action fired,
the file saved into the Upload path,
but when another button fired
the method
if (fuImage.HasFile)
return null

Note : the code into Update Panel
Posted
Comments
Mahendra.p25 26-Mar-11 1:20am    
Not clear please elaborate

1 solution

I am not sure but try this hope it will be helpful
C#
if (fileUploadCategoryImage.HasFile == true)
{
       string ImagePath= UploadImage(fileUploadCategoryImage);            
//     use that ImagePath and store it into the DataBase      
}

public string UploadImage(FileUpload fileUpload1)
{
//      upload file in the folder           
    return strImageFile
}
 
Share this answer
 
v2
Comments
Sandeep Mewara 26-Mar-11 1:57am    
Always use PRE tags to wrap your code. It makes them readable.

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