Пример #1
0
 public static string GetViewPagePathWithVersion(string mainPath, string pageName, int version)
 {
     return(string.Format("{0}?page={1}&ver={2}", mainPath, PageNameUtil.Encode(pageName), version));
 }
Пример #2
0
 public static string GetEditFilePath(string mainPath, string pageName)
 {
     return(string.Format("{0}?file={1}&action=Edit", mainPath, PageNameUtil.Encode(pageName)));
 }
Пример #3
0
 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))));
 }