日本国产亚洲-日本国产一区-日本国产一区二区三区-日本韩国欧美一区-日本韩国欧美在线-日本韩国欧美在线观看

當前位置:雨林木風下載站 > 技術開發教程 > 詳細頁面

運用索引服務器 - 創建ASP頁面

運用索引服務器 - 創建ASP頁面

更新時間:2022-05-07 文章作者:未知 信息來源:網絡 閱讀次數:

創建ASP頁面

  在ASP頁面上一切都變得非?。你用表單中的值來驅動對索引服務器進行查詢的對象。

整個過程是這樣的:

◆ 打開記錄集。
◆ 用標準ADO 方法,一步步地走過記錄集。

<%
"Create a Query object, initialize it using
"SetQueryFromURL, and dump the object state

"set the query object
Set objQuery = Server.CreateObject("ixsso.Query")

"get the query properties set from the
"incoming URL (from the form GET operation)
objQuery.SetQueryFromURL(Request.QueryString)

"tell the object what columns to include
objquery.columns="filename,HitCount,vpath,DocTitle,characterization"

"open the recordset, causing the query to be
"executed
set rsQuery = objquery.createrecordset("nonsequential")

"now, if rsquery.eof is not TRUE, then we have results
"to show. If it IS TRUE, no results were found.

"get the page out for the user...
%>

<html>
<head>
</head>

<h1>Search Results</h1>
A maximum of 200 results will be returned, 20 hits per page will be shown. <br><br>
<%
if not rsquery.eof then
Response.Write rsquery.recordcount & " hit(s) were found. "
if rsquery.recordcount > 30 then
Response.Write "You may want to refine your query."
end if
Response.Write "<br>"
end if
%>

<%
if not rsquery.eof then
while not rsquery.eof and rowcount > 0
if rsquery("doctitle") <> "" then
Response.Write "<p><b><a href="" & rsquery("vpath") & "">" & rsquery("doctitle") & "</a></b><br>"
response.write "<font size=-1>" & rsquery("characterization") & "...</font><Br>"
Response.Write "<font size=- 2>" & rsquery("hitcount") & " hit(s)</font></p>"
end if
rowcount = rowcount - 1
rsquery.movenext
wend
Response.Write "<br><Br>"
%>


<%
else
%>

<p>
對不起,沒有發現紀錄,如果要查詢兩個以上的詞,使用and或or。
</p>

<%
end if
%>

</body>
</html>



  你需要做的第一件事就是建立對索引服務器對象的引用。這是通過使用server.creatobject方法來完成的:


Set objQuery = Server.CreateObject("ixsso.Query")   
作者/出處:青蘋果工作室

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

主站蜘蛛池模板: 91手机视频在线观看 | 久久精品亚洲一区二区 | 狠狠色狠狠色综合久久第一次 | 国产在线一区二区视频 | 久久精品亚洲精品一区 | 久久机热这里只有精品无需 | 中文字幕精品在线 | 欧美高清一级毛片免费视 | 国产精品麻豆一区二区三区v视界 | 久久久久久免费一区二区三区 | 欧美日本道 | 日韩精品欧美激情亚洲综合 | 青青成人 | 国产欧美一级片 | 伊人久久大香焦 | yy4138理论片在线大全 | 操一操日一日 | 91香蕉成人免费高清网站 | 99久久精品免费看国产免费 | 国产爱视频 | 99精品一区二区三区 | 午夜湿影院多多影院 | 欧美日韩顶级毛片www免费看 | 伊人天天 | 国产成人精品18 | 中文字幕一区日韩在线视频 | 久久国产美女免费观看精品 | 日韩欧美制服 | 99久久精品无码一区二区毛片 | 天天干天天射综合网 | 国产无人区一区二区三区 | 经典三级第一页 | 国产欧美日韩在线 | 亚洲国产成人精品不卡青青草原 | 亚洲欧美综合国产不卡 | 99久久综合精品国产 | 91一区二区在线观看精品 | 91麻豆国产在线观看 | 高清性高爱潮视频免费看网站 | 人人色在线视频播放 | 欧洲mv日韩mv国产mv |