Re: Prune double slahes
- From: David Longnecker <dlongnecker@xxxxxxxxxxxxxxxx>
- Date: Wed, 8 Nov 2006 16:11:45 +0000 (UTC)
To Marc's point, are the slashes even there at all? Isn't the compiler trying to escape out the characters before it?
Try:
<appSettings>
<add key="pdfroot" value="p:\\E-Switch Secure\\PDF_dwgs\\"/>
</appSettings>
string path = ConfigurationManager.AppSettings["pdfroot"];
Tossing that to a Textbox would display:
"p:\E-Switch Secure\PDF_dwgs\"
--
Reproduced, simplistically, with:
string pathname = "p:\\E-Switch Secure\\PDF_dwgs\\";
output.Text = pathname;
value from output.text in presentation: p:\E-Switch Secure\PDF_dwgs\
---
-dl
---
David Longnecker
Web Developer
http://blog.tiredstudent.com
But... unless I am missing something, it doesn't contain any double
slashes... is this just a debugger issue? It displays strings in the
escaped form, so \ appears \\. But it is still \.
Marc
.
- Follow-Ups:
- Re: Prune double slahes
- From: Dave Sexton
- Re: Prune double slahes
- References:
- Re: Prune double slahes
- From: Marc Gravell
- Re: Prune double slahes
- Prev by Date: Re: Borderless Form drag and drop.
- Next by Date: Difference between String and string
- Previous by thread: Re: Prune double slahes
- Next by thread: Re: Prune double slahes
- Index(es):
Relevant Pages
|