菜!送分! dbConnect.Open "dsnname"后面跟帐号、密码 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 求:相关ASP和数据库连接的源码,给高分![email protected] 你贴错了地方,这里是讨论ASP.NET的地方,不是ASP,还是给你段ASP代码吧<%dbpath=server.mappath("db\qingxinu.mdb")qingxin="DRIVER={Microsoft Access Driver (*.mdb)};PWD=;DBQ="&dbpath%><%set conn=server.CreateObject("adodb.connection")conn.Open qingxinul25%><%news="select top 7 ID,title,summary,content,timeissue,countlx,redirect from class0 order by timeissue desc,ID desc"set restnews=conn.Execute (news)%><table> <% do while not restnews.eof %> <tr><td> <div> <img border="0" src="images/dot.gif" width="9" height="11"> <a href="content.asp?class=class0&id=<% =restnews("id") %>" target="_blank"><% =restnews("timeissue") %><% ="("&restnews("countlx")&")" %> </div> <div><% =restnews("summary") %></div> </td></tr> <% restnews.movenext loop %> <% restnews.close set restnews=nothing %> </table> 修改一下:<%dbpath=server.mappath("db\qingxinu.mdb")qingxin="DRIVER={Microsoft Access Driver (*.mdb)};PWD=;DBQ="&dbpath%><%set conn=server.CreateObject("adodb.connection")conn.Open qingxin%> asp.net 动态添加textbox,并且获取值 关于dopost函数 求BT种子文件解析代码 求客户端脚本来代替ImageButton控件的点击事件以避免页面的刷新 一个关于导出到EXCEL时,写web.config的问题 js在aspx中总是出现错误 想找些对极限编程感兴趣的朋友一起学习 刷新母页。 ASP.Net操作word,本地调试可行,服务器上.Activate()未将对象引用设置到对象的实例 请fys(独步天涯)和 newnan(神出鬼没)近来领分 想在PHP页面中调用ASPX页面,但是不知道如何写才能正确? word怎么转换成html文件
[email protected]
<%
dbpath=server.mappath("db\qingxinu.mdb")
qingxin="DRIVER={Microsoft Access Driver (*.mdb)};PWD=;DBQ="&dbpath
%>
<%
set conn=server.CreateObject("adodb.connection")
conn.Open qingxinul25%><%
news="select top 7 ID,title,summary,content,timeissue,countlx,redirect from class0 order by timeissue desc,ID desc"
set restnews=conn.Execute (news)
%>
<table>
<% do while not restnews.eof %>
<tr><td>
<div>
<img border="0" src="images/dot.gif" width="9" height="11">
<a href="content.asp?class=class0&id=<% =restnews("id") %>" target="_blank">
<% =restnews("timeissue") %><% ="("&restnews("countlx")&")" %>
</div>
<div><% =restnews("summary") %></div>
</td></tr>
<% restnews.movenext
loop %>
<% restnews.close
set restnews=nothing
%>
</table>
<%
dbpath=server.mappath("db\qingxinu.mdb")
qingxin="DRIVER={Microsoft Access Driver (*.mdb)};PWD=;DBQ="&dbpath
%>
<%
set conn=server.CreateObject("adodb.connection")
conn.Open qingxin%>