Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2007

Tip: Looking for answers? Try searching our database.

Question about Use and formatting of URLs within a RichTextBox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
B. Chernick - 20 Jun 2007 16:26 GMT
I would like to copy a url to a richtextbox on a form.  This particular url
is actually a link to a jpeg sitting on a windows server.  I have set the
box's DetectURLs property to true.  To make matters more complicated, this
url has spaces in it.

The actual location is as follows: \\<Server
name>\docdirectory\QUALITY\Safety Tm Inspections\Pictures\cabinet.jpg  This
will display properly in Internet Explorer.

However in order to get the link to work properly within the richtextbox I
have to enter the link as follows: file://<server
name>/docdirectory/QUALITY/Safety%20Tm%20Inspections/Pictures/cabinet.jpg

Could someone please explain what is happening here or point me to a
relevant reference?
Ciaran O''Donnell - 20 Jun 2007 17:09 GMT
The %20 replacement is URL encoding for a space. the % in a URL is an escape
character for a URL and the following 2 digits are hex digits which represent
the ascii character code. In this case its 20 which is 32, the character code
for a space.

This way of doing things is standard URL encoding.

Signature

Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com

> I would like to copy a url to a richtextbox on a form.  This particular url
> is actually a link to a jpeg sitting on a windows server.  I have set the
[quoted text clipped - 11 lines]
> Could someone please explain what is happening here or point me to a
> relevant reference?
B. Chernick - 20 Jun 2007 17:33 GMT
The %20 I can understand.  It's these two apparently separate formats to the
same file that have me confused (\\<server> vs file://<server>) and more
importantly how to make use of them.  (One's a true URL and one's a windows
networking address?  It's been a while since my last theory class. :-)

> The %20 replacement is URL encoding for a space. the % in a URL is an escape
> character for a URL and the following 2 digits are hex digits which represent
[quoted text clipped - 18 lines]
> > Could someone please explain what is happening here or point me to a
> > relevant reference?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.