THESE FORUMS ARE NOW FROZEN
Please choose "Forums" from the Main menu of www.entityspaces.net to get to our new forums.

Enhancement in class Utilities

rated by 0 users
This post has 1 Reply | 2 Followers

Top 100 Contributor
Posts 24
soennichsen Posted: 02-10-2009 8:12 AM

Hi!

The GridLoaders Project contains a Utilities class which constructs URLs. I found out that there is a problem with a path not being the root of the webserver (because you are missing a leading ~). The following code fixs that problem:

 

         public static string ConstructUrl(string controlKey, string pageName)
        {
            return string.Format("~/Index.aspx?{0}={1}", controlKey, pageName);
        }

        public static string ConstructUrl(params string[] args)
        {
            string theUrl = "~/Index.aspx?";

            foreach (string parameter in args)
            {
                theUrl = theUrl + parameter;
            }

            return theUrl;
        }

 

Sven

Regards Sven --- Twitter
Top 10 Contributor
Posts 905
Great catch Sven, I will get this added to our source and it will be in the next time we release. Once again, thank you for reporting this.

Regards, Scott Schecter EntitySpaces | Blog | Twitter

Page 1 of 1 (2 items) | RSS
Copyright © 2005 - 2009, EntitySpaces, LLC