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);
        }
        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));
 }