日期:2014-05-17  浏览次数:20447 次

asp.net截取字符串
例如
string str="1.1.xlsx";
我要截取xlsx,请大神帮助

------解决方案--------------------
str = str.Substring(str.LastIndexOf('.')+1, str.Length - str.LastIndexOf('.')-1);