• <label id="pxtpz"><meter id="pxtpz"></meter></label>
      1. <span id="pxtpz"><optgroup id="pxtpz"></optgroup></span>

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

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

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

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

        創(chuàng)建ASP頁面

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

        整個過程是這樣的:

        ◆ 打開記錄集。
        ◆ 用標(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ì)錄,如果要查詢兩個以上的詞,使用and或or。
        </p>

        <%
        end if
        %>

        </body>
        </html>



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


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

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

        本類教程下載

        系統(tǒng)下載排行

        主站蜘蛛池模板: 亚洲AV伊人久久青青草原| 日韩在线永久免费播放| 亚洲成在人线在线播放无码| 亚洲AV无码成人精品区天堂| 亚洲精品无码午夜福利中文字幕| 亚洲人成无码网站| 亚洲今日精彩视频| 亚洲ⅴ国产v天堂a无码二区| 成人亚洲综合天堂| mm1313亚洲国产精品美女| 亚洲精品无码久久久久sm| 亚洲av鲁丝一区二区三区| 亚洲一区二区免费视频| 国产精品亚洲综合久久| 亚洲熟女综合色一区二区三区| 国产成人精品日本亚洲专| 亚洲日韩中文字幕无码一区| 亚洲国产成人精品无码区二本| 特级毛片aaaa免费观看| 97人妻精品全国免费视频| 日韩av无码久久精品免费| 国产精品四虎在线观看免费| 亚洲日本中文字幕区| 自拍偷自拍亚洲精品偷一| 亚洲成人免费电影| 无码欧精品亚洲日韩一区夜夜嗨| 亚洲精品偷拍无码不卡av| 巨胸狂喷奶水视频www网站免费| 久久受www免费人成_看片中文| 免费播放特黄特色毛片| 亚洲1区2区3区精华液| 亚洲成人免费在线观看| 麻豆国产VA免费精品高清在线 | 丁香五月亚洲综合深深爱| 国产成人精品日本亚洲专区 | 国产精品无码免费视频二三区| 亚洲无线观看国产精品| 亚洲一区精彩视频| a成人毛片免费观看| 国产真实伦在线视频免费观看| 亚洲成a人片在线观看无码专区|