认真阅读以下关于静态网页制作和动态网页编程的技术说明,根据要求回答问题1~问题6。
【说明】 一、静态网页制作
某电子商务公司用ASP实现了一个用于手机销售信息查询的网页,主页文件名为“index.html”,其文档内容如下。
[index.html文档内容] <html> <head>
<title>易搜手机资讯广场</title> </head>
<frameset cols="198, *" "border=0">
<frame name="side" src="side.html" scrolling="No">
<frameset rows=’96, *" "border=0">
<frame name="top" src="top.html"
scrolling="No"> <frame
name="main" src="main.asp" scrolling="Auto">
</frameset> </frameset>
<body> </body> </html>
二、动态网页编程
图6-9是用户按品牌型号进行查询时的网页(main.asp)在IE浏览器上运行后的效果图。表6-9是手机信息数据库表结构。
表6-9
数据库字段说明表
字段名
类型
备注
字段名
类型
备注
Id
自动编号
记录编号
Price
货币
参考价格
Brand
文本
手机品牌
Function
文本
功能描述
Type
文本
手机型号
其中,Brand字段下共有两种数据:moto、nokia,分别代表摩托罗拉、诺基亚。
【main.asp文档的内容】 <html> <head>
<title>易搜手机资讯广场</title> </head>
<body bgcolor="#ffffff" background="bg1.gif" text="#000000">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<left> <!-以下为实现按手机型号搜索功能的部分--> <from
name="form1" method="post" action="main_search.asp"> <div
align="left"> <table width="400"
border="0"> <tr>
<td align="right" width="120">请输入<font
color="ff0000">型号</font>关键字:</td>
<td align="left" width="40">
<input name="Searchtxt" type="text"
id="Searchtxt"></td> <td
colspan="2" align="left">
<input type="submit" name="Submit"
value="搜索"></td>
</tr> </table>
</div> </form> </left>
</table> <!-以下为浏览手机信息部分功能>
<table> <center> <%dim searchtext
searchtext=Request.Form ("Mobel") exec="select *
from mod order by Type ASC" set
conn=server.createobject ("adodb.connection")
dbpath=server.mappath ("mod.mdb")
conn.open "PROVIDER=Microsoft.jet.OLEDB.4.0;data
source="&dbpath set
rs=server.createobject ("adodb.recordset")
rs.open exec, conn, 1, 3
<!-省略关于分页功能的代码> %> <div align="right">
<table border="1" width="100%">
<tr>
<th width="20%"><font color="#996633" size="2">品牌</font></th>
<th width="20%"><font color="#996633"
size="2">型号</font></th> <th
width="20%"><font color="#996633" size="2">参考价格</fonr></th>
<th width="40%"><font color="#996633"
size="2">功能描述</font></th>
</tr> </table><br>
<% do while NOT rs.EOF and rowcount>0%>
<div align="right"> <table
border="1" width="100%">
<tr>
<td align="center" width="20%"><font size="2"><%=rs (Brand)
%></font></td>
<td align="center" width="20%"><a herf="<%=rs ("type") %>.asp"><font
size="2"><%=rs ("Type") %></font></a></td>
<td align="center" width="20%"><font
size="2"><%=rs (Price) %></font></td>
<td align="center" width="40%"><font size="2"><%=rs
(Function) %></font></td>
</tr>
</table> </div>
<%rowcount=rowcount-1%> <%rs.MoveNext’
指向下一条%> <%LOOP%>
<br> <!--省略关于分页功能的代码>
</div></center></td></tr> </table>
</body> </html>
【问题4】
手机销售信息查询的网页中使用的数据库连接引擎是什么连接的后台数据库文件名是什么
题库:计算机网络管理员
类型:简答题
时间:2021-07-10 11:35:18
免费下载:《问答集》Word试卷
认真阅读以下关于静态网页制作和动态网页编程的技术说明,根据要求回答问题1~问题6。
【说明】 一、静态网页制作
某电子商务公司用ASP实现了一个用于手机销售信息查询的网页,主页文件名为“index.html”,其文档内容如下。
[index.html文档内容] <html> <head>
<title>易搜手机资讯广场</title> </head>
<frameset cols="198, *" "border=0">
<frame name="side" src="side.html" scrolling="No">
<frameset rows=’96, *" "border=0">
<frame name="top" src="top.html"
scrolling="No"> <frame
name="main" src="main.asp" scrolling="Auto">
</frameset> </frameset>
<body> </body> </html>
二、动态网页编程
图6-9是用户按品牌型号进行查询时的网页(main.asp)在IE浏览器上运行后的效果图。表6-9是手机信息数据库表结构。
表6-9
数据库字段说明表
字段名
类型
备注
字段名
类型
备注
Id
自动编号
记录编号
Price
货币
参考价格
Brand
文本
手机品牌
Function
文本
功能描述
Type
文本
手机型号
其中,Brand字段下共有两种数据:moto、nokia,分别代表摩托罗拉、诺基亚。
【main.asp文档的内容】 <html> <head>
<title>易搜手机资讯广场</title> </head>
<body bgcolor="#ffffff" background="bg1.gif" text="#000000">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<left> <!-以下为实现按手机型号搜索功能的部分--> <from
name="form1" method="post" action="main_search.asp"> <div
align="left"> <table width="400"
border="0"> <tr>
<td align="right" width="120">请输入<font
color="ff0000">型号</font>关键字:</td>
<td align="left" width="40">
<input name="Searchtxt" type="text"
id="Searchtxt"></td> <td
colspan="2" align="left">
<input type="submit" name="Submit"
value="搜索"></td>
</tr> </table>
</div> </form> </left>
</table> <!-以下为浏览手机信息部分功能>
<table> <center> <%dim searchtext
searchtext=Request.Form ("Mobel") exec="select *
from mod order by Type ASC" set
conn=server.createobject ("adodb.connection")
dbpath=server.mappath ("mod.mdb")
conn.open "PROVIDER=Microsoft.jet.OLEDB.4.0;data
source="&dbpath set
rs=server.createobject ("adodb.recordset")
rs.open exec, conn, 1, 3
<!-省略关于分页功能的代码> %> <div align="right">
<table border="1" width="100%">
<tr>
<th width="20%"><font color="#996633" size="2">品牌</font></th>
<th width="20%"><font color="#996633"
size="2">型号</font></th> <th
width="20%"><font color="#996633" size="2">参考价格</fonr></th>
<th width="40%"><font color="#996633"
size="2">功能描述</font></th>
</tr> </table><br>
<% do while NOT rs.EOF and rowcount>0%>
<div align="right"> <table
border="1" width="100%">
<tr>
<td align="center" width="20%"><font size="2"><%=rs (Brand)
%></font></td>
<td align="center" width="20%"><a herf="<%=rs ("type") %>.asp"><font
size="2"><%=rs ("Type") %></font></a></td>
<td align="center" width="20%"><font
size="2"><%=rs (Price) %></font></td>
<td align="center" width="40%"><font size="2"><%=rs
(Function) %></font></td>
</tr>
</table> </div>
<%rowcount=rowcount-1%> <%rs.MoveNext’
指向下一条%> <%LOOP%>
<br> <!--省略关于分页功能的代码>
</div></center></td></tr> </table>
</body> </html>
【问题4】
手机销售信息查询的网页中使用的数据库连接引擎是什么连接的后台数据库文件名是什么
本题关键词:静态作业,静态控制原理,静态投资回收,动态控制,静态组织关系,静态经济,静态评价,静态预算,静态参数,静态平衡;