Click here to Skip to main content
15,899,825 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Sending data back to referer Pin
aplope17-Dec-04 7:36
aplope17-Dec-04 7:36 
GeneralReporting Services : custom parameters Pin
Member 150632215-Dec-04 5:39
Member 150632215-Dec-04 5:39 
GeneralStrange behaviour of ISAPI Filter; OnUrlMap called multiple time after returning SF_STATUS_REQ_FINISH Pin
qaiser7315-Dec-04 0:38
qaiser7315-Dec-04 0:38 
QuestionWhy different results? Pin
rgoyal14-Dec-04 20:20
rgoyal14-Dec-04 20:20 
AnswerRe: Why different results? Pin
raouls14-Dec-04 21:43
raouls14-Dec-04 21:43 
GeneralRe: Why different results? Pin
rgoyal15-Dec-04 21:54
rgoyal15-Dec-04 21:54 
GeneralExporting different language of Portal Site Pin
Firas Rashid14-Dec-04 19:52
Firas Rashid14-Dec-04 19:52 
GeneralAdd a search help Pin
Charlotte Price14-Dec-04 3:49
Charlotte Price14-Dec-04 3:49 
I am trying to add a search to a website. The web server is running WIN 2K. I get the indexing service and catalog set up correctly cause the built in query works, but when I search with my ASP page it comes up blank. Am I missing a setting or does my code just not work? I just started with the sample code.

SEARCH PAGE
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Index Server Example Search Form</title>
</head>

<body>

<form method="POST" action="SearchResults.asp" name="frmSearch">
<p><input type="text" maxlength="255" name="query" size="20" value>
<input type="submit" value="Search" name="B1">
</p>
</form>
</body>
</html>

RESULTS PAGE
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Index Server Example Search Results Page</title>
</head>

<body>
<%
Dim sSearchString
Dim oQuery

sSearchString = Request.Form("query")

Const SEARCH_CATALOG = "IS-Sample" 'remember to change this
%>
<%
Set oQuery = Server.CreateObject("IXSSO.Query")

oQuery.Catalog = SEARCH_CATALOG
oQuery.Query = "@all " & sSearchString & " AND NOT #path *_* AND NOT #path *downloads* AND NOT #path *images* AND NOT #filename *.class AND NOT #filename *.asa AND NOT #filename *.css AND NOT #filename *postinfo.html"
oQuery.MaxRecords = 200
oQuery.SortBy = "rank[d]"
oQuery.Columns = "DocAuthor, vpath, doctitle, FileName, Path, Write, Size, Rank, Create, Characterization, DocCategory"
Set oRS = oQuery.CreateRecordSet("nonsequential")
%>
<%
If oRS.EOF Then
Response.Write "No pages were found for the query <i>" & sSearchString & "</i>"
Else
Do While Not oRS.EOF

Response.write "<b>FileName:</b> " & oRS("FileName") & "<br>"
Response.write "<b>doctitle:</b> " & oRS("doctitle") & "<br>"
Response.write "<b>Size:</b> " & oRS("Size") & "<br>"
Response.write "<b>Create:</b> " & oRS("Create") & "<br>"
Response.write "<b>Write:</b> " & oRS("Write") & "<br>"
Response.write "<b>Characterization:</b> " & oRS("Characterization") & "<hr>"

oRS.MoveNext
Loop
End If
%>
<%
Set oRS = nothing
Set oQuery = nothing
%>
</body>
</html>
QuestionShopping Cart: use cookies or database? Pin
LukeV13-Dec-04 15:46
LukeV13-Dec-04 15:46 
AnswerRe: Shopping Cart: use cookies or database? Pin
V.13-Dec-04 23:28
professionalV.13-Dec-04 23:28 
AnswerRe: Shopping Cart: use cookies or database? Pin
Paul Watson15-Dec-04 0:44
sitebuilderPaul Watson15-Dec-04 0:44 
GeneralRe: Shopping Cart: use cookies or database? Pin
LukeV15-Dec-04 2:02
LukeV15-Dec-04 2:02 
AnswerRe: Shopping Cart: use cookies or database? Pin
ScottSingleton20-Dec-04 8:29
ScottSingleton20-Dec-04 8:29 
GeneralYahtzee! Pin
Khyronian13-Dec-04 5:32
Khyronian13-Dec-04 5:32 
GeneralRe: Yahtzee! Pin
eshipman16-Dec-04 4:27
eshipman16-Dec-04 4:27 
GeneralRe: Yahtzee! Pin
Khyronian16-Dec-04 5:02
Khyronian16-Dec-04 5:02 
Generaluse ActiveX control in C# web application Pin
kd834112-Dec-04 11:33
kd834112-Dec-04 11:33 
QuestionHow can i add an element from JavaScript? Pin
Hercules0111-Dec-04 20:22
Hercules0111-Dec-04 20:22 
AnswerRe: How can i add an element from JavaScript? Pin
Hercules0111-Dec-04 21:00
Hercules0111-Dec-04 21:00 
Generalopen file Pin
Kalibur5710-Dec-04 22:06
Kalibur5710-Dec-04 22:06 
GeneralRe: open file Pin
MoustafaS13-Dec-04 0:10
MoustafaS13-Dec-04 0:10 
GeneralRe: open file Pin
Paul Watson13-Dec-04 4:44
sitebuilderPaul Watson13-Dec-04 4:44 
Generalmultiple upload Pin
jeanperlin10-Dec-04 17:53
jeanperlin10-Dec-04 17:53 
GeneralRe: multiple upload Pin
alex.barylski12-Dec-04 16:00
alex.barylski12-Dec-04 16:00 
GeneralRe: multiple upload Pin
Paul Watson13-Dec-04 4:45
sitebuilderPaul Watson13-Dec-04 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.