voor een intranet site heb ik index server draaien.
nu heb ik hem draaiend dat ie netjes word.doc's weergeeft, maar bijvoorbeeld html of asp pagina's geeft ie niet weer na een query.
Ik heb het met de volgende code:
Deze code komt uit het WROX Asp handboek, maar zoals gezegd krijg ik alleen word documenten terug...
iemand een suggestie?
nu heb ik hem draaiend dat ie netjes word.doc's weergeeft, maar bijvoorbeeld html of asp pagina's geeft ie niet weer na een query.
Ik heb het met de volgende code:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
| <HTML>
<BODY>
<%
Dim objQuery
Dim rsResults
Dim strSearchText
Dim strSearchType
strSearchText =Request.QueryString("txtSearchText")
strSearchType = Request.QueryString("cboSearchType")
Set objQuery = Server.CreateObject("IXSSO.Query")
Set rsResults = server.CreateObject("ADODB.Recordset")
objQuery.Catalog = "ccintranet"
If strSearchType = "Phrase" Then
strSearchText = "{phrase}" & strSearchText & "{/phrase}"
End If
objQuery.Query = strSearchText
objQuery.Columns = "FileName, path"
Set rsResults = objQuery.CreateRecordset("sequential")
If rsResults.EOF Then
Response.Write "<STRONG><FONT SIZE=+6 COLOR=BLUE>" & _
"No Results Found</FONT></STRONG>"
Else
%>
<TABLE BORDER=0 WIDTH=100%>
<TR>
<TD><STRONG>File name</STRONG></TD>
<TD><STRONG>File Location</STRONG></TD>
</TR>
<%
While Not rsResults.EOF
%>
<TR>
<TD><% =rsResults.Fields(0).Value %></TD>
<TD><A HREF="<%= rsResults.fields(1).value %>">
<%= rsResults.Fields(1).Value %></A></TD>
</TR>
<%
rsResults.MoveNext
Wend
%>
</TABLE>
<%
End If
Set objQuery = Nothing
Set rsResults = Nothing
%>
</BODY>
</HTML> |
Deze code komt uit het WROX Asp handboek, maar zoals gezegd krijg ik alleen word documenten terug...
iemand een suggestie?
Heart..pumps blood.Has nothing to do with emotion! Bored