Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Moran 285 posts 934 karma points
    Mar 20, 2014 @ 11:10
    Moran
    0

    Replacing nested page url

    Is there a way to replace a nested page url with a different one? I am having issues with the charcters limit in asp.net.

    The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

    I want to replace this: http://localhost:53781/תחומי-התמחות/שלטון-ומיסוי-מקומי/רשויות-מקומיות/

    with this: http://localhost:53781/רשויות-מקומיות

    I only want the name of the "grand parent" to show up in the URL

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 20, 2014 @ 12:04
  • Moran 285 posts 934 karma points
    Mar 20, 2014 @ 18:12
    Moran
    0

    Thanks a lot.

    I wonder, does this code can help me get shorter URL? The solution that presented here is for deeper urls and not for shorter urls

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 20, 2014 @ 18:21
    Jeroen Breuer
    0

    I'm not sure if it works for shorter urls. You should try it. 

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft