|
next tr1="<tr>"&tr1&"</tr>" for ri=0 to iTblRow for ci=0 to iTblCol td=td&"<td width='"&split(TbTil(ci),"|")(1)&"'>"&tbRs(ci,ri)&"</td>" next tr=tr&"<tr>"&td&"</tr>" td=null next TbTil=null tbRs=null response.Write(tbStr&tr1&tr&"<tr><td colspan='"&iTblCol+1&"'>"&pageNav()&"</td></tr></tbody></table>") tbStr=null tr1=null tr=null End Function '打印sql语句,以便语句有错误时检查 Public Sub prnSql() response.Write(strsql) End Sub '------------------------------------------------------------------------- '容错函数 '------------------------------------------------------------------------- Private Function errMsg(errMsg) If Err.number<>0 Then '出现问题可利用此处代码打印出描述信息,方便调试。可注释掉 response.Write(Cstr(Err.description)&"<br>") Err.Clear Response.Write "<font color='#FF0000'>"&errMsg&"出错</font>" '注释 Response.End() End If End Function '------------------------------------------------------------------------- '容错函数结束 '------------------------------------------------------------------------- End Class %> |
|
【收藏】【打印】【进入论坛】 |
|
|
|
|
|
|
|