Advertisement
uniblab

Untitled

Jul 25th, 2017
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.02 KB | None | 0 0
  1. if ( File.Exists( profileFolderDirOnWww + filePrefix + "profile.jpg" ) )
  2.     url = profileFolderUrlOnWww + filePrefix + "profile.jpg";
  3. else if ( File.Exists( profileFolderDirOnWww + filePrefix + "profile.png" ) )
  4.     url = profileFolderUrlOnWww + filePrefix + "profile.png";
  5. else if ( File.Exists( profileFolderDirOnWww + filePrefix + "profile.gif" ) )
  6.     url = profileFolderUrlOnWww + filePrefix + "profile.gif";
  7. else if ( File.Exists( profileFolderDirOnWww + filePrefix + "profile.jpeg" ) )
  8.     url = profileFolderUrlOnWww + filePrefix + "profile.jpeg";
  9. else if ( File.Exists( profileFolderDirOnWww + "profile.jpg" ) )
  10.     url = profileFolderUrlOnWww + "profile.jpg";
  11. else if ( File.Exists( profileFolderDirOnWww + "profile.png" ) )
  12.     url = profileFolderUrlOnWww + "profile.png";
  13. else if ( File.Exists( profileFolderDirOnWww + "profile.gif" ) )
  14.     url = profileFolderUrlOnWww + "profile.gif";
  15. else if ( File.Exists( profileFolderDirOnWww + "profile.jpeg" ) )
  16.     url = profileFolderUrlOnWww + "profile.jpeg";
  17. else
  18.     url = ProfileImageUrl ?? "";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement