TempExt = RS("filename")
Ext = Right(TempExt, 3)
Then write an if statement surrounding the Recordset
output.
If Ext = "asp" Then
Response.Write RS("filename")
Response.Write RS("vpath")
'Anything else you want included in the return
End If
>-----Original Message-----
>Hi all. I am trying to only bring back .asp files. We
use
>include files and the search results bring back the .htm
>files. any way to filter by only certain file
extensions
>and throw the rest out? in short, i only need the .asp
>files. thanks in advance.
>
>peter
>.
>
objQuery.Query="Select filename where filename
like '%.asp'"
>.
>
q.query="("&compsearch&") and not #filename *.asp and not #filename *.htm
and not #filename *.txt"
Thank You
George Cheng
Microsoft Index Server and Site Server Search Support
Microsoft Application Center 2000 Support
http://www.microsoft.com/applicationcenter
Note: This article has no warranties implicit or explicit.
All the content is given on the "as is" basis and the user
takes full responsibility for its use and assumption.
Microsoft Corporation Copyright 2002
All Rights Reserved