[asp] index server geeft geen asp weer

Pagina: 1
Acties:

  • TeeDee
  • Registratie: Februari 2001
  • Laatst online: 16:14
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:
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


  • TeeDee
  • Registratie: Februari 2001
  • Laatst online: 16:14
laat maar.. hij werkt..

was te voorbarig. Hij was nog niet klaar met indexen, en het script was niet helemaal lekker! ;)

Heart..pumps blood.Has nothing to do with emotion! Bored


  • dominic
  • Registratie: Juli 2000
  • Laatst online: 21-08 19:07

dominic

will code for food

Heheh klopt, duurt altijd ff.

Download my music on SoundCloud