string tempUrlStr = fun.GetRequestString(Url,1000000,1,System.Text.Encoding.GetEncoding("GB2312"));
Response.Write(tempUrlStr);
int lenA = tempUrlStr.IndexOf("<LI>电子书店 </LI></DIV>",0);
int lenB = tempUrlStr.IndexOf("</div>",lenA);
string Source = tempUrlStr.Substring(lenA,lenB-lenA);上面的lenA调试的时候都能查到位置,,
但是一运行就总是提示: int lenB = tempUrlStr.IndexOf("</div>",lenA);这句的lenA不能小于0
Response.Write(tempUrlStr);
int lenA = tempUrlStr.IndexOf("<LI>电子书店 </LI></DIV>",0);
int lenB = tempUrlStr.IndexOf("</div>",lenA);
string Source = tempUrlStr.Substring(lenA,lenB-lenA);上面的lenA调试的时候都能查到位置,,
但是一运行就总是提示: int lenB = tempUrlStr.IndexOf("</div>",lenA);这句的lenA不能小于0
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货