예제 #1
0
        public static string NavigateUrl(PageState pagestate, string path, bool reload)
        {
            string url = pagestate.Alias.Path + "/" + path;

            if (reload)
            {
                if (url.Contains("?"))
                {
                    url += "&reload=true";
                }
                else
                {
                    url += "?reload=true";
                }
            }
            return(url);
        }
예제 #2
0
        public static string EditUrl(PageState pagestate, Module modulestate, string action, string parameters)
        {
            string url = pagestate.Alias.Path;

            if (pagestate.Page.Path != "")
            {
                url += "/" + pagestate.Page.Path;
            }
            url += "/" + modulestate.ModuleId.ToString();
            if (action != "")
            {
                url += "/" + action;
            }
            if (!string.IsNullOrEmpty(parameters))
            {
                url += "?" + parameters;
            }
            return(url);
        }
예제 #3
0
 public static string NavigateUrl(PageState pagestate)
 {
     return(NavigateUrl(pagestate, pagestate.Page.Path, false));
 }
예제 #4
0
 public static string EditUrl(PageState pagestate, Module modulestate, string action)
 {
     return(EditUrl(pagestate, modulestate, action, ""));
 }
예제 #5
0
 public static string NavigateUrl(PageState pagestate, bool reload)
 {
     return(NavigateUrl(pagestate, pagestate.Page.Path, reload));
 }