+ Reply to Thread
Results 1 to 6 of 6

Thread: Ampersand problems

  1. #1
    Barn Newbie lewy is on a distinguished road lewy's Avatar
    Join Date
    Mar 2008
    Posts
    40
    Rep Power
    3

    Ampersand problems

    I hope this is some quick fix

    I'm working with a file manager where we allow the users to upload any files they'd like to see
    in their webpages. I've created a treeview file listing but are having problems handling the & (ampersand) in the link.
    Does anyone know of a quick way in which I can eliminate this nuisance

    Thanks

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Washington, D.C.
    Posts
    2,347
    Blog Entries
    9
    Rep Power
    19

    What exactly is the problem?
    jmurrayhead
    If you agree, give me rep. If my post helped you, click "Thanks".
    If you like it here...throw us a few bones to help support us.


  3. #3
    Barn Newbie lewy is on a distinguished road lewy's Avatar
    Join Date
    Mar 2008
    Posts
    40
    Rep Power
    3

    The file manager works, except when there is an ampersand in the file name, it doesn't render on the browser

    the following url has an example: url removed

    look at the second file under the conflict of interest questionaire
    Last edited by lewy; September 20th, 2008 at 11:12 PM.

  4. #4
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Washington, D.C.
    Posts
    2,347
    Blog Entries
    9
    Rep Power
    19

    You should use Server.UrlEncode on the URL's before assigning them to the TreeView.
    jmurrayhead
    If you agree, give me rep. If my post helped you, click "Thanks".
    If you like it here...throw us a few bones to help support us.


  5. #5
    Barn Newbie lewy is on a distinguished road lewy's Avatar
    Join Date
    Mar 2008
    Posts
    40
    Rep Power
    3

    If I user Server.URLEncode before assigning them to the treeview, spaces will have a + on the url instead of a %20 and won't be right
    I've already tried this

  6. #6
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Washington, D.C.
    Posts
    2,347
    Blog Entries
    9
    Rep Power
    19

    Looks like you're not the only one having issues with this: Treeview NavigateURL with spaces - ASP.NET Forums
    jmurrayhead
    If you agree, give me rep. If my post helped you, click "Thanks".
    If you like it here...throw us a few bones to help support us.


+ Reply to Thread

Similar Threads

  1. VBA Requery Problems
    By nboscaino in forum Microsoft Access
    Replies: 24
    Last Post: August 28th, 2008, 11:11 AM
  2. Issue with ampersand &
    By Rebelle in forum ASP Development
    Replies: 3
    Last Post: April 17th, 2008, 10:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO