提示 Index and length must refer to a location within the string.
...全文
35211打赏收藏
substring报错!
string strSbuUserName=Session["SUserName"].ToString(); string strsun=strSbuUserName.Substring(strSbuUserName.IndexOf("/")+1,strSbuUserName.Length-strSbuUserName.IndexOf("/")); 提示 Index and length must refer to a location within the string.