Guest User

Untitled

a guest
Jan 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. public static string ContentWithVer(this UrlHelper urlHelper, string contentPath)
  2.         {
  3.             string url = urlHelper.Content(contentPath);
  4.             if (false == string.IsNullOrEmpty(url))
  5.             {
  6.                 if (url.Contains("?"))
  7.                     return string.Format("{0}&Ver={1}", url, CON_VER_STRING);
  8.                 else
  9.                     return string.Format("{0}?Ver={1}", url, CON_VER_STRING);
  10.             }
  11.  
  12.             return url;
  13.         }
Add Comment
Please, Sign In to add comment