【发布时间】:2014-04-02 11:33:06
【问题描述】:
当我使用 Lists.asmx 网络服务来显示列表数据时,生成的 xml 会返回列表查找列,其中的数据如下所示:[135;#Superman]
有没有办法摆脱 Number;# 并离开超人?
【问题讨论】:
标签: c# asp.net xml web-services sharepoint
当我使用 Lists.asmx 网络服务来显示列表数据时,生成的 xml 会返回列表查找列,其中的数据如下所示:[135;#Superman]
有没有办法摆脱 Number;# 并离开超人?
【问题讨论】:
标签: c# asp.net xml web-services sharepoint
你可以试试:
Console.WriteLine(Regex.Match("1236;#xxl", "\d+;#(.*)").Groups[1]);
或使用任何其他字符串操作
【讨论】: