当前位置:编程学习 > C#/ASP.NET >>

删除字符串中的反斜杠

将select * from table where 序号='"+id+"'存储至sql2008表中,取出后变为select * from table where 序号='/"+id+/"',请问高手如何将“/”删除掉,谢谢 --------------------编程问答-------------------- string s="你的字符串";
s=s.Replace("/\"","\""); --------------------编程问答--------------------
引用 1 楼  的回复:
string s="你的字符串";
s=s.Replace("/\"","\"");

正解 --------------------编程问答-------------------- +1 接分
引用 1 楼  的回复:
string s="你的字符串";
s=s.Replace("/\"","\"");
--------------------编程问答--------------------

string s="你的字符串";
s = s.Replace("/", ""); 
--------------------编程问答-------------------- Replace --------------------编程问答-------------------- 正解,接分。
引用 4 楼  的回复:
C# code

string s="你的字符串";
s = s.Replace("/", "");
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,