DeveloperBarn Forums

DeveloperBarn

Programming & IT forum

Ampersand problems

This is a discussion on Ampersand problems within the .Net Development forums, part of the Programming & Scripting category; I hope this is some quick fix I'm working with a file manager where we allow the users to upload ...

Go Back   DeveloperBarn Forums > Programming & Scripting > .Net Development

  #1  
Old September 9th, 2008, 03:46 PM
Barn Newbie
 
Join Date: Mar 2008
Posts: 40
Rep Power: 2
lewy is on a distinguished road
Default 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
Reply With Quote
  #2  
Old September 9th, 2008, 05:04 PM
jmurrayhead's Avatar
The Barnfather
 
Join Date: Mar 2008
Real name: Jason
Location: Washington, D.C.
Posts: 1,962
Blog Entries: 8
Rep Power: 15
jmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud of
Default

What exactly is the problem?
__________________
jmurrayhead
If you agree with me... click the icon!
If my post solved your problem, click the button in the lower right-hand corner of the post.

If you like it here...throw us a few bones to help
support us.

Join our Folding team: DeveloperBarn Folding

Reply With Quote
  #3  
Old September 9th, 2008, 08:59 PM
Barn Newbie
 
Join Date: Mar 2008
Posts: 40
Rep Power: 2
lewy is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old September 9th, 2008, 09:42 PM
jmurrayhead's Avatar
The Barnfather
 
Join Date: Mar 2008
Real name: Jason
Location: Washington, D.C.
Posts: 1,962
Blog Entries: 8
Rep Power: 15
jmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud of
Default

You should use Server.UrlEncode on the URL's before assigning them to the TreeView.
Reply With Quote
  #5  
Old September 10th, 2008, 09:30 AM
Barn Newbie
 
Join Date: Mar 2008
Posts: 40
Rep Power: 2
lewy is on a distinguished road
Default

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
Reply With Quote
  #6  
Old September 10th, 2008, 10:08 AM
jmurrayhead's Avatar
The Barnfather
 
Join Date: Mar 2008
Real name: Jason
Location: Washington, D.C.
Posts: 1,962
Blog Entries: 8
Rep Power: 15
jmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud of
Default

Looks like you're not the only one having issues with this: Treeview NavigateURL with spaces - ASP.NET Forums
Reply With Quote
Reply

  DeveloperBarn Forums > Programming & Scripting > .Net Development

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
VBA Requery Problems nboscaino Microsoft Access 24 August 28th, 2008 11:11 AM
Issue with ampersand & Rebelle ASP Development 3 April 17th, 2008 10:54 AM


All times are GMT -4. The time now is 07:06 AM.


Copyright ©2008-2010, DeveloperBarn

Content Relevant URLs by vBSEO 3.3.2