源码信息

最新源码评论

  • 评论者:红焱边缘
    红焱边缘(用户) 发表于:2008-05-11 11:03:00

    :( 后台的搜索好用,前台的搜索不成功,问题是:<i>在位置 0 处没有任何行。</i> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif"><b>说明: </b>执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 <br/><br/><b>异常详细信息: </b>System.IndexOutOfRangeException: 在位置 0 处没有任何行。<br/><br/><b>源错误:</b> <br/><br/><table class="t_table" cellspacing="1" cellpadding="4" style="width:98%;background: #ffffcc;"><tr><td>行 18:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bookinfo = Request[&quot;findtype&quot;].ToString();行 19:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataTable dt = Class1.ExecSel(bookinfo);<font color="red">行 20:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int id = Convert.ToInt32(dt.Rows[0][0]);</font>行 21:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string info = &quot;select * from tblBook where bookID=&quot;+id;行 22:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataTable datatable = Class1.ExecSel(info);</td></tr></table></font>

    0 个回复