View Full Version : ASP Search.
12-14-2002, 07:27 AM
Hey there yall.....is there any way to incorporate a search on my site that searches the meta tags in each page of my site and lists them? i would like to have a search function on my page w/o pissing with database backends and what not....any good ideas?
12-14-2002, 07:38 AM
strange to look for your own metas , normally you can add them dynamicly from xml or a database
you know them before they are in you html page
if you really need it you can get them with asp net and regular expression by scrapping your own site
but it is really a strange way
12-14-2002, 07:39 AM
well...i dunno...that was just a thought....whats the best non-database way to search your site?
thanks for replying!!
12-14-2002, 07:53 AM
with xml you can have all your metas , it is what I am doing for my own, i Have mtas from a dazabase for products wich are changing all the time , and for more "stable" metas , as pages categories , al is into an xml file
like so :
<meta lang="fr" page="agorabrok">
<title>agorabrok l'achat gagnant</title>
<description>agorabrok prix casses pour le bureau et la maison</description>
<keywords>agorabrok, informatique, fournitures, mobilier, equipement de bureau, services generaux
<premierTexte>Tout pour le bureau et la maison.Informatique, fournitures, consommables, matériels, mobiliers
et plus encore. Consultez nous avant tout achat. Des opportunites siderantes tous les jours.</premierTexte>
<survol>Attention ! site mine d'affaires</survol>
then I have a dynamic HEAD and a function to generate <title ect.... for each page
12-14-2002, 07:56 AM
but you still say "searching for your own site.." that's a point I don't understand
if you want to get metas from other sites ... I understand better :-)))
12-14-2002, 06:30 PM
WHen i say "On My Own Page" ....im just meaning a search that searches all the pages on my site.....i dont know what the best way is to go about this...im not able to work on databases quite yet....
12-14-2002, 09:57 PM
then a good way to store datas without database is xml
12-16-2002, 01:52 AM
You can use the filesystem object to open each page and using a regular expression search each page for specific things. The link below will give you some information on it.
Again, I'm not sure why you'd want to. It just seems logical to store it in a database table and just query it.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.