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="">
<input type="submit" value="Suche starten!">
</form>
<p> </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?