Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static string ContentWithVer(this UrlHelper urlHelper, string contentPath)
- {
- string url = urlHelper.Content(contentPath);
- if (false == string.IsNullOrEmpty(url))
- {
- if (url.Contains("?"))
- return string.Format("{0}&Ver={1}", url, CON_VER_STRING);
- else
- return string.Format("{0}?Ver={1}", url, CON_VER_STRING);
- }
- return url;
- }
Add Comment
Please, Sign In to add comment