Navigation URL Problems

Last post 11-07-2009 8:44 AM by Capture_db. 2 replies.

Sort Posts:

  • Navigation URL Problems

    11-06-2009, 12:26 PM
    • Member
      71 point Member
    • Capture_db
    • Member since 08-08-2006, 1:31 PM
    • Posts 144

    Hi

    I have a problems when using the HyperLink control when settings the NavigateURL and it navigating to the wrong folder because i am rewriting the urls

    for intanse there are two kind of links

    Section/hello.aspx -> ~/Content/content.aspx?section=hello

    Content/world.aspx -> ~/Content/content.aspx?id=world

    When you are at a url that is the first kind (e.g Section/hello.aspx) the HyperLink control keeps writing the second kind of link as Section/world.aspx instead of Content/world.aspx

    I have tried resetting the Hyperlink controls AppRelativeTemplateSourceDirectory to ~/Section instead of its automatic value of ~/Content but this doesnt seem to do anything.


    Anyone got any ideas?


    Thanks

    Dan

  • Re: Navigation URL Problems

    11-06-2009, 3:16 PM
    Answer
    • Member
      440 point Member
    • sayyazahmad
    • Member since 01-17-2008, 11:46 PM
    • US
    • Posts 87

    Try set the URL dynamically. 

    Please Mark As Answer if it helps you!
  • Re: Navigation URL Problems

    11-07-2009, 8:44 AM
    • Member
      71 point Member
    • Capture_db
    • Member since 08-08-2006, 1:31 PM
    • Posts 144

    yer i could do that but i wanted to be able to use the HyperLink control because of being able to use the "~/" in front of the folder for asp.net to figure it out.

Page 1 of 1 (3 items)