PC Review


Reply
Thread Tools Rate Thread

Convert string to URL

 
 
randy
Guest
Posts: n/a
 
      30th Aug 2006
Hi,

I have a url stored in a config file and when I retrieve it and store as a
string it does not look like the url (see below).

URL in config is:
https://test.com/test.cfm

Stirng output is:
"\https://test.com/test.cfm\"

I tried using URLPathEncode and it returns the same string. What is the
deal?

Thanks



 
Reply With Quote
 
 
 
 
KJ
Guest
Posts: n/a
 
      30th Aug 2006
Where do you see the string with the additional backslashes? Are you
looking at the string in one of the debugger windows?

randy wrote:
> Hi,
>
> I have a url stored in a config file and when I retrieve it and store as a
> string it does not look like the url (see below).
>
> URL in config is:
> https://test.com/test.cfm
>
> Stirng output is:
> "\https://test.com/test.cfm\"
>
> I tried using URLPathEncode and it returns the same string. What is the
> deal?
>
> Thanks


 
Reply With Quote
 
randy
Guest
Posts: n/a
 
      30th Aug 2006
I viewed it in the command window.

"KJ" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Where do you see the string with the additional backslashes? Are you
> looking at the string in one of the debugger windows?
>
> randy wrote:
>> Hi,
>>
>> I have a url stored in a config file and when I retrieve it and store as
>> a
>> string it does not look like the url (see below).
>>
>> URL in config is:
>> https://test.com/test.cfm
>>
>> Stirng output is:
>> "\https://test.com/test.cfm\"
>>
>> I tried using URLPathEncode and it returns the same string. What is the
>> deal?
>>
>> Thanks

>



 
Reply With Quote
 
KJ
Guest
Posts: n/a
 
      30th Aug 2006
Then your string is OK. The debugger windows add the backslashes as
escape characters for the quotation marks.

randy wrote:
> I viewed it in the command window.
>
> "KJ" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Where do you see the string with the additional backslashes? Are you
> > looking at the string in one of the debugger windows?
> >
> > randy wrote:
> >> Hi,
> >>
> >> I have a url stored in a config file and when I retrieve it and store as
> >> a
> >> string it does not look like the url (see below).
> >>
> >> URL in config is:
> >> https://test.com/test.cfm
> >>
> >> Stirng output is:
> >> "\https://test.com/test.cfm\"
> >>
> >> I tried using URLPathEncode and it returns the same string. What is the
> >> deal?
> >>
> >> Thanks

> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert 'System.Collections.ObjectModel.ReadOnlyCollection(Of String)' to '1-dimensional array of String'. roidy Microsoft VB .NET 12 17th Jul 2009 10:53 AM
Convert Dictionary<string,SomeType> keys to List<string> buzzweetman@gmail.com Microsoft C# .NET 6 9th Aug 2006 03:54 PM
convert html-string to plain text-string Nedo Microsoft Dot NET 4 28th Jul 2005 09:53 AM
Connection String object Convert to String Variable Type =?Utf-8?B?TWlrZSBNb29yZQ==?= Microsoft ASP .NET 2 26th Oct 2004 03:43 PM
Convert a string to Ascii codes and then back to string again Kai Bohli Microsoft C# .NET 11 8th Jul 2004 03:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:17 AM.