Link to home
Start Free TrialLog in
Avatar of dcrowley_01
dcrowley_01Flag for United States of America

asked on

Is there a way to dynamically create a link only if a file exists in ASP.net / C#?

I am moving a load of PDF files to our webserver. I am looking for a way to dynamically create a link only if the file exists. Some ID's will have certain files, while others will not.
So I want it to check for the existence of 5155032.PDF before creating the link, otherwise don't create it.
ASKER CERTIFIED SOLUTION
Avatar of Michael Fowler
Michael Fowler
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial