日期:2014-05-18  浏览次数:20940 次

字符串替换
1.string a = "123456789";
2.替换成123***789;
3.用报表表达式里面的方式解决

------解决方案--------------------
C# code

            string a = "123456789";
            a = a.Substring(0, 3) + "***" + a.Substring(5, 3);

------解决方案--------------------
C# code

 string a = "12ddd6789";
 a = a.Replace(a.Substring(3, 3), "***");