Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can any one help me out to find out a solution:
I have a fileupload control with a 'preview' btn. I want to show this 'preview' btn only after the fileupload control is used with its browse btn.
Thank you.
Posted
Comments
kk2014 12-Dec-12 5:26am    
u mean to say if file is uploaded then you want to show preview button...

you can use
C#
if (FileUpload1.HasFile) 
property of the fileupload control, if it returns true, make your 'preview' button visible.
FileUpload.HasFile Property[^]
 
Share this answer
 
for that u have to take another button which upload file and on post back u can check it.
if (FileUpload1.HasFile)
 {
    btnPreivew.Visible = true;
 }
 else
 {
    btnPreivew.Visible = false;
 }
 
Share this answer
 

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