예제 #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))));
 }