W
weilai2570019
Unregistered / Unconfirmed
GUEST, unregistred user!
string begin
html = "<", strcontent = "";
int begin
count = 0, endcount = 0, count = 0, htmlcount = 0;
htmlcount = varcontent.IndexOf("<"
if (htmlcount >= 0)
{ count = varcontent.IndexOf("|"
[red] begin
count = varcontent.IndexOf(begin
html, count);[/red] strcontent = varcontent.Substring(begin
count,varcontent.Length - begin
count);
endcount = strcontent.Length;
varcontent = varcontent.Substring(count, varcontent.Length - count - endcount);
红色的字体在本机里没有错误为什么传到了服务器上就会报错呢
报的错误是:Index was out of range.Must be non-negative and less than the size of collection.
parameter name:startindex
html = "<", strcontent = "";
int begin
count = 0, endcount = 0, count = 0, htmlcount = 0;
htmlcount = varcontent.IndexOf("<"
if (htmlcount >= 0)
{ count = varcontent.IndexOf("|"
[red] begin
count = varcontent.IndexOf(begin
html, count);[/red] strcontent = varcontent.Substring(begin
count,varcontent.Length - begin
count);
endcount = strcontent.Length;
varcontent = varcontent.Substring(count, varcontent.Length - count - endcount);
红色的字体在本机里没有错误为什么传到了服务器上就会报错呢
报的错误是:Index was out of range.Must be non-negative and less than the size of collection.
parameter name:startindex