[求助]ASP和access
请教各位高手,把ASP和ACCESS数据库连接后,我想把数据库中一个表的数据按原表的格式在网上显示出来,代码该怎样写呢?
<% Set Rs=conn.Execute("select * from table") strLine="<table border=""1"" width=""100%""><tr>" td="" For each x in Rs.fields td=td&"<td>"&x.name&"</td>" Next strLine=strLine&td&"</tr>" if not(Rs.EOF and Rs.BOF) then While Not Rs.Eof strLine=strLine&"<tr>" td="" for each x in Rs.Fields td=td&"<td> "&x.value&" </td>" next strLine=strLine&td&"</tr>" Rs.MoveNext Wend strLine=strLine&"</table>" end if Rs.Close Response.Write strLine %>