Ajax+Asp源代碼]讀取數(shù)據(jù)庫內(nèi)容的表格(沒有用框架)
更新時(shí)間:2006年11月22日 00:00:00 作者:
html頁面的代碼
頁面名稱:List.htm
復(fù)制代碼 代碼如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Dynamic of Table - Auntion - Javascript+DOM</title>
<style type="text/css">
/*------------public style--------------*/
body {
font-family:Geneva, Arial, Helvetica, sans-serif;
font-size:11px;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
/*-------------------------------------*/
#MyTable {
color: #888888;
border-top:1px dashed #d6d6d6;
border-left:1px dashed #d6d6d6;
}
#MyTable td {
height:18px;
text-align: center;
border-right:1px dashed #d6d6d6;
border-bottom:1px dashed #d6d6d6;
padding: 3px 3px 2px 3px;
}
.MyTableTag {
color:#0099FF;
font-size:12px;
font-weight:bolder;
}
#Number {
color:#FF6633;
}
.pages {
border-left:1px dashed #d6d6d6;
border-right:1px dashed #d6d6d6;
border-bottom:1px dashed #d6d6d6;
}
.pagesTag {
color:#0099FF;
}
.status {
color:#666666;
}
.statusContact {
color:#888888;
}
.No {
color:#BBBBBB;
}
</style>
<script language="javascript" type="text/javascript" src="Ajax.Js"></script>
</head>
<body>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="0" id="MyTable" >
<tr>
<td width="30" align="center" bgcolor="#F0F9FF" class="MyTableTag" id="modeId">Id</td>
<td width="140" align="center" bgcolor="#F0F9FF" class="MyTableTag" id="modeName">Name</td>
<td width="80" align="center" bgcolor="#F0F9FF" class="MyTableTag" id="modeSex">Sex</td>
<td width="50" align="center" bgcolor="#F0F9FF" class="MyTableTag" id="modeAge">Age</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="300" height="24" border="0" cellpadding="0" cellspacing="0" bgcolor="#F0F9FF" class="pages">
<tr>
<td width="36" align="right" valign="middle" class="status" style="padding-left:8px;">Status:
<input type="hidden" name="PageCount" id="PageCount"/><!--儲存分頁總數(shù)-->
<input type="hidden" name="PageNow" id="PageNow"/><!--儲存當(dāng)前頁碼-->
</td>
<td id="Status" width="162" align="left" valign="middle" class="statusContact" style="padding-left:2px;">Loading...</td>
<td id="Pages" width="98" align="center" valign="middle" class="No">Previous│Next</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
數(shù)據(jù)庫為access.
數(shù)據(jù)庫文件名:database.mdb
表名:UserData
字段:Id Name Sex Age
id為編號.其他全部為String.發(fā)不上來圖,自己看加吧.性別也是普通的文本字段,如果需要yes/no.自己修改一下就可以了
您可能感興趣的文章:
- 用Ajax讀取XML格式的數(shù)據(jù)
- Ajax讀取數(shù)據(jù)到表格的實(shí)現(xiàn)代碼
- Ajax讀取數(shù)據(jù)之分頁顯示篇實(shí)現(xiàn)代碼
- 在Ajax中使用Flash實(shí)現(xiàn)跨域數(shù)據(jù)讀取的實(shí)現(xiàn)方法
- ajax讀取數(shù)據(jù)庫內(nèi)容實(shí)現(xiàn)二級聯(lián)動下拉選擇菜單示例
- AJAX如何接收J(rèn)SON數(shù)據(jù)示例介紹
- JQuery處理json與ajax返回JSON實(shí)例代碼
- jquery的ajax和getJson跨域獲取json數(shù)據(jù)的實(shí)現(xiàn)方法
- ThinkPHP中使用ajax接收json數(shù)據(jù)的方法
- 如何使用ajax讀取Json中的數(shù)據(jù)
相關(guān)文章
服務(wù)端配置實(shí)現(xiàn)AJAX跨域請求
這篇文章主要介紹了服務(wù)端配置實(shí)現(xiàn)AJAX跨域請求的相關(guān)資料,需要的朋友可以參考下2015-02-02
AJAX請求數(shù)據(jù)及實(shí)現(xiàn)跨域的三種方法詳解
ajax跨域這個(gè)問題其實(shí)很常見,這篇文章主要給大家介紹了關(guān)于AJAX請求數(shù)據(jù)及實(shí)現(xiàn)跨域的三種方法的相關(guān)資料,文中通過實(shí)例代碼介紹的非常詳細(xì),需要的朋友可以參考下2021-12-12
Ajax客戶端異步調(diào)用服務(wù)端的實(shí)現(xiàn)方法(js調(diào)用cs文件)
下面小編就為大家分享一篇Ajax客戶端異步調(diào)用服務(wù)端的實(shí)現(xiàn)方法(js調(diào)用cs文件),具有很好的參考價(jià)值,希望對大家有所幫助2017-12-12
AJAX 用戶注冊時(shí)的應(yīng)用實(shí)例
我所舉的這個(gè)例子是一個(gè)企業(yè)用戶注冊時(shí)的一個(gè)應(yīng)用,當(dāng)用戶注冊時(shí)檢查用戶名和企業(yè)名是否可用,以前的做法是在旁邊加一個(gè)按鈕,點(diǎn)擊“檢查”,就向服務(wù)器發(fā)出請求,然后等待……服務(wù)器返回信息,繼續(xù)操作。2008-12-12

