[CLOSED] Resolving ASP.NET urls

  1. #1

    [CLOSED] Resolving ASP.NET urls

    What are your thoughts on changing the line

    return (obj == null) ? "" : (string)obj;
    to

    return (obj == null) ? "" : this.Owner.ResolveUrl((string)obj);
    in TreeLoaderBase.cs similar to how it's done in PageTreeLoader?
  2. #2

    RE: [CLOSED] Resolving ASP.NET urls

    Hi Justin,

    I'm assuming you're referring to the .DataUrl property?


    If yes, the value is later resolved using this.Owner.ResolveUrl when theUrlProxy property is returned. TheUrlProxy value is the actual value used in the config object.


    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] Resolving ASP.NET urls

    Sorry, realised I missed out the whole pre-amble of what I was trying to explain.

    If you use a TreeLoader e.g.


    <ext:TreeLoader Clear&#111;nload="true" DataUrl="~/Handler.ashx" />
    The the client side script is rendered to look for the url ~/Handler.ashx which of course does not exist.

    By changing line 87 in TreeLoaderBase as detailed in my previous post the client side renders [CORRECTPATH]/Handler.ashx as required.

    I found that this is how you had done it in PageTreeLoader.cs and have not seen any unwanted side effects from this change.

    Justin
  4. #4

    RE: [CLOSED] Resolving ASP.NET urls

    Thanks for the update...

    It looks like the .DataUrl property was not properly configured in TreeLoaderBase.cs. Previously I was only looking in PageTreeLoader.cs.


    I moved things around and now the client-side initialization script should be set with the fully resolved .url.


    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 5
    Last Post: Jul 25, 2011, 6:14 PM
  2. [CLOSED] Incorrect request resolving
    By acrossdev in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 03, 2009, 10:07 AM
  3. [CLOSED] Using ~ In Urls
    By rcaunt in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 28, 2009, 12:58 PM
  4. Replies: 5
    Last Post: Dec 04, 2008, 12:13 PM

Posting Permissions