CoolDev2014
asked on
c# replace method
I try to replace \ to string.empty like the following code, but it never works. Can you show me the right way to do that?
(firstName.Text).Replace(@ "\", "")
(firstName.Text).Replace(@
ASKER
but i have something like below
string fileName = genericSrv.Encryption(firs tName.Text ).Replace( @"\", "")
how can i do that?
string fileName = genericSrv.Encryption(firs
how can i do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
*no points*
I agree with Andy's assessment: You wouldn't want to change the encrypted string because you might not be able to restore it back. It sounds like you intended to modify the pre-encrypted string, and then to encrypt that result, which is what Andy's code demonstrates.
I agree with Andy's assessment: You wouldn't want to change the encrypted string because you might not be able to restore it back. It sounds like you intended to modify the pre-encrypted string, and then to encrypt that result, which is what Andy's code demonstrates.
ASKER
andy: another excellent help. If you have time, I have another one for you.
https://www.experts-exchange.com/questions/28366375/asp-net-ajax-tool-kit-calendar.html
https://www.experts-exchange.com/questions/28366375/asp-net-ajax-tool-kit-calendar.html
Something like this:
firstName.Text = (firstName.Text).Replace(@