PDA

View Full Version : How do I do a search for words in multiple HTML pages from an ASP page?


JJC
02-10-2005, 09:02 PM
I need to bring up links to different pages, where is there is a match for the words entered for the search . How can I do the search? The list of HTML pages to be searched is dynamic. The search has to be done from ASP. ALso the HTML pages may not be open at the time of search.

Alex Vincent
02-11-2005, 05:50 AM
This thread's in the wrong place. One of our administrators or supermoderators will probably move this to the ASP forum.

miranda
02-11-2005, 09:15 PM
You can use the file system object to iterate through the directories specified and then through each of the pages to search for those words.

JJC
02-15-2005, 10:49 PM
Is there any sample code available?

miranda
02-16-2005, 04:37 AM
Here are some tutorials to help you write the code.

W3Schools (http://www.w3schools.com/asp/asp_ref_filesystem.asp)

LearnASP (http://www.learnasp.com/learn/fileobjects.asp)

GoogleResults (http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLD,GGLD:2004-48,GGLD:en&q=asp+file+system+object)

JJC
02-16-2005, 03:16 PM
Thanks a lot. I really appreciate your help.