Glengamoi · AspHeute (Artikel) · .NET Heute (RSS-Suche) · .NET Blogs · Glengamoi Suche (Installieren via Klick)

Glengamoi

Die Diskussionsforen der deutschen .NET Community
Willkommen bei Glengamoi. Anmeldung | Registrieren | Hilfe
in Suchen

Abfrage von Index Katalog mit IIS - kein direkter link zum gesuchten Pdf

Letzter Beitrag 04-25-2007 23:32 von jackhowdy. 0 Antworten.
Seite 1 von 1 (1 Treffer)
Beiträge sortieren: Zurück Weiter
  • 04-25-2007 23:32

    Abfrage von Index Katalog mit IIS - kein direkter link zum gesuchten Pdf

    Hallo liebe communinty von .net

     Ich bin gerade an einem Windows 2000 Server mit IIS dran. Im Endstatium soll der User über ein Interface (asp) sein gewünschtes PDF mit direktem Link zum öffnen bekommen. Leider habe ich bezüglich des direktlinks noch ein Problem.

     

    Ich verwende folgendes Formular:

    <html>
    <head>
     <title>test</title>
    </head>
    <body bgcolor="#ffffff">

    <form method="post" action="<%=Request.ServerVariables("SCRIPT_NAME")%>">
    Suche nach : <input type="text" name="SearchKeyword" value="">&nbsp;
    <input type="submit" value="Suche starten!">
    </form>

    <p>&nbsp;</p>

    <%
    Const cstrCatalog = "dms"
    Const cMinKeywordLength = 3
    Const cMaxRecords = 50

    strKeyword = Trim(Request.Form("SearchKeyword"))
    If Len(strKeyword) >= cMinKeywordLength Then
        strIXQuery = "$CONTENTS " & strKeyword
        strIXQuery = strIXQuery & " AND NOT #VPath = *\includes* "
        strIXQuery = strIXQuery & " AND NOT #filename login.asp "
        strIXQuery = strIXQuery & " AND NOT #filename *.|(txt|,inc|,udl|,doc|)"
       
        Set objQuery = Server.CreateObject("IXSSO.Query")
        Set objUtil = Server.CreateObject("IXSSO.Util")
       
        objQuery.Query = strIXQuery
        objQuery.Columns = "Vpath,DocTitle,Filename,Characterization,Contents,Rank"
        objQuery.SortBy = "Rank[d]"
        objQuery.MaxRecords = cMaxRecords
        objquery.Catalog = cstrCatalog
        objquery.LocaleID = objutil.ISOToLocaleID("EN-US")

        Set rsIX = objQuery.CreateRecordset("nonsequential")
        While Not rsIX.EOF
            Response.Write "<p><a href=""" & rsIX("vpath") & """>"
            Response.Write rsIX("DocTitle") & "</a><br>" & vbCrlf
            Response.Write "<i>" & rsIX("Characterization") & "</i></p>"
            rsIX.MoveNext
        Wend
        rsIX.Close
        Set rsIX = Nothing
        Set objUtil = Nothing
        Set objQuery = Nothing
    End If
    %>

    </body>
    </html>

     

    Leider gibt das asp mir nur die Indizierten Texte des PDF aus. Was ich benötige ist der direkte Hyperlink zur Datei.

    Was mache ich falsch? Zugriffrechte? Sonstige Einstellungen?

    Abgelegt unter:
    • IP-Adresse ist Registriert
Seite 1 von 1 (1 Treffer)