ASP & Title Tag Searching

Results 1 to 2 of 2

Thread: ASP & Title Tag Searching

  1. #1
    Chris Cotterill Guest

    Default ASP & Title Tag Searching

    I have a search page at http://bachelor.wabash.edu/search/Default.asp. I would like to add a search option so that I can search the Title of each file (from the TITLE tag of course). Can anyone tell me how to do this?<BR><BR>CWC

  2. #2
    John Harvey Guest

    Default RE: ASP & Title Tag Searching

    I would open the files as a text stream. Because the &#060;title> tag is most likley near the beginning, I&#039d readline until I met a condition such as this:<BR><BR>Position = InStr(1, LCase (TextSream), "title")<BR>If Position > 0 Then<BR> Title = ""<BR> Position = Position + 1 &#039hop over the closing ">" from title tag<BR> Do While Mid (TextStream, Position + 1, 1) &#060;> "&#060;"<BR> Title = Title & Mid (TextStream, Position, 1)<BR> Position = Position + 1 <BR> Loop<BR>End If<BR>Good Luck,<BR>John

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •