public static string GetViewPagePathWithVersion(string mainPath, string pageName, int version) { return(string.Format("{0}?page={1}&ver={2}", mainPath, PageNameUtil.Encode(pageName), version)); }
public static string GetEditFilePath(string mainPath, string pageName) { return(string.Format("{0}?file={1}&action=Edit", mainPath, PageNameUtil.Encode(pageName))); }
public static string GetViewPagePath(string mainPath, string pageName, string spetial) { return(string.Format("{0}?page={1}", mainPath, string.IsNullOrEmpty(spetial) ? PageNameUtil.Encode(pageName) : string.Format(@"{0}:{1}", spetial, PageNameUtil.Encode(pageName)))); }