Re: Trying to remove "\" from a string
From: Bobby Ryzhy (bryzhy_at_hotmail.com)
Date: 07/07/04
- Next message: zimmy: "Re: how to check whether asp.net is installed/enabled with c#?"
- Previous message: Bobby Ryzhy: "Re: Browser Compatability"
- In reply to: Robert_at_Rob.com: "Trying to remove "\" from a string"
- Next in thread: Hans Kesting: "Re: Trying to remove "\" from a string"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 07 Jul 2004 14:22:22 -0600
s = s.Replace("\\", "");
double up the escape char.
Bobby Ryzhy
bobby@ name of domain below
http://www.weekendtech.net
On Wed, 7 Jul 2004 20:01:57 GMT, Robert@Rob.com wrote:
>Hello.
>
>I have tried to remove the char "\" from a string that I am building in
>codebehind.
>to be used in a script tag.
>
>I have tried adding (char)34 to the string instead of the escape character,
>as well as @then double quotes.
>when i watch the string in the command window or the watch window it has the
>escape character in the string allways \"
>I have tried to use replace.. but you cant replace a escape character, I
>tryed establishing a char variable as (char)92
>
>My question is how the heck can I build a string without an escape character
>around the quotes ?
>
>Thanks,
>Rob
- Next message: zimmy: "Re: how to check whether asp.net is installed/enabled with c#?"
- Previous message: Bobby Ryzhy: "Re: Browser Compatability"
- In reply to: Robert_at_Rob.com: "Trying to remove "\" from a string"
- Next in thread: Hans Kesting: "Re: Trying to remove "\" from a string"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|