欧美特黄不卡,涩涩视频在线,成人国产精品一区二区网站,亚洲一区二区三区欧美

當(dāng)前位置:雨林木風(fēng)下載站 > 技術(shù)開發(fā)教程 > 詳細(xì)頁面

運(yùn)用索引服務(wù)器 - 創(chuàng)建ASP頁面

運(yùn)用索引服務(wù)器 - 創(chuàng)建ASP頁面

更新時(shí)間:2022-05-07 文章作者:未知 信息來源:網(wǎng)絡(luò) 閱讀次數(shù):

創(chuàng)建ASP頁面

  在ASP頁面上一切都變得非常酷。你用表單中的值來驅(qū)動(dòng)對索引服務(wù)器進(jìn)行查詢的對象。

整個(gè)過程是這樣的:

◆ 打開記錄集。
◆ 用標(biāo)準(zhǔn)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>
對不起,沒有發(fā)現(xiàn)紀(jì)錄,如果要查詢兩個(gè)以上的詞,使用and或or。
</p>

<%
end if
%>

</body>
</html>



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


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

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

本類教程下載

系統(tǒng)下載排行

主站蜘蛛池模板: 扎赉特旗| 博野县| 西昌市| 新绛县| 鄯善县| 阳西县| 望城县| 湖南省| 大余县| 五指山市| 成都市| 察隅县| 金川县| 梁平县| 雅江县| 河西区| 璧山县| 阳朔县| 大同市| 云和县| 余姚市| 芷江| 开鲁县| 江都市| 巢湖市| 民乐县| 青河县| 肃宁县| 漯河市| 邵武市| 正镶白旗| 遂川县| 修水县| 伽师县| 夏津县| 上林县| 淄博市| 祁东县| 西乡县| 子洲县| 邵武市|