944,147 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 1598
  • ASP RSS
Jul 25th, 2006
0

Searching keywords inside webpages

Expand Post »
Searching keywords inside webpages

--------------------------------------------------------------------------------

hi all
my problem is searching :rolleyes: ...i want to search words within webpage which is stored in one directory..:surprised

it is different from normal directory searching :eek: ...beacause i am searching inside the webpage ..so i want to omit all that html tags or other asp codes...:-|
also i want to know that is there any way to store webpage inside the database ...it will be efficient than storing inside the directory....:surprised
seeking ur help :lol:
ums
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
umshere is offline Offline
4 posts
since Jul 2006
Jul 25th, 2006
0

Re: Searching keywords inside webpages

You can use windows find to search for text in files in a directory. If you want to do it from ASP page and skip HTML tags that's difficut you will need to learn all about regular expressions first for searching text.

If you downoad and install cygwin you can use linux tools like grep.

weppages are text, so yes you can just save it in a databse table. But you have to be carefull of length (how much text) so in MS SQL Server for instance you will want to use a column data type of ntext for example. Then you could set-up text indexing for searching, but again skipping all the tags would be difficult but not impossible.
Last edited by hollystyles; Jul 25th, 2006 at 11:12 am.
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005
Jul 26th, 2006
0

Re: Searching keywords inside webpages

thanks dude for ur help,
but my problem is different... i dont want the simple searching ... i am deveoping a webbased application for an intranet webpage help... i want it to be like microsoft help that u r getting pressing f1 key ....so i will create a no of help pages ...and the user can search that pages with any keywords ....there i need help...i want to find the code for searching the keywords inside the pages which is stored inside some directory..... will u help me for that ...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
umshere is offline Offline
4 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Prob with inserting value stud_id into table Guarantor and Loan1
Next Thread in ASP Forum Timeline: text box value in asp





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC