熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

asp 讀取數據庫記錄

2013-11-13 10:38:05  來源: .NET編程 

  asp教程 讀取數據庫教程記錄
  <%
  
  Dpath ="wwwliannet/dbaseMateyDBWeb_^%$#@mdb"
  Set Conn=ServerCreateObject("Adodbconnection")
 
  if requestQueryString("action")="list" then
   Set Rs =ServerCreateObject("AdodbRecordset")
   Connconnectionstring="Provider=MicrosoftJetoledb;Data source="&ServerMapPath(Dpath)
   Connopen
   Dim sql
  
   sql ="select * from test id= "&requestQueryString("id")
   rsopen sqlconn
 
  end if
 
  %>

  
  <input name="uid" type="text" id="uid" value="<%=rs("uid")%>">

  用戶名

  
    <input name="pwd" type="text" id="pwd" value="<%=rs("pwd")%>">

  密碼

  </p>
<table width="" border="">
  <tr>
    <td width="">地址</td>
    <td width="">操作</td>
  </tr>
  <tr>
    <td>wwwcnnet</td>
    <td><a href="?id=">查看</a></td>
  </tr>
</table>
 


From:http://tw.wingwit.com/Article/program/net/201311/14176.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.