Larry Brister
asked on
.NET File exists
I need to do an if statement based on if a file exists...hopefully with Server.mappath
If "~/gallery/" & Request.QueryString("id") & ".swf exists
Session("src") = "~/gallery/" & Request.QueryString("id") & ".swf
else
Session("src") = "~/gallery/default.swf "
If "~/gallery/" & Request.QueryString("id") & ".swf exists
Session("src") = "~/gallery/" & Request.QueryString("id") & ".swf
else
Session("src") = "~/gallery/default.swf "
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://msdn.microsoft.com/en-us/library/system.io.file.exists(VS.71).aspx