Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Search a keyword and highlight it

Search a keyword and highlight it

Scheduled Pinned Locked Moved ASP.NET
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yadlaprasad
    wrote on last edited by
    #1

    Hi, i am developing a search engine.when i type a keyword in text box,the matched word should be highlighted and all the results should be appeared. sending sample code would be appreciable. Thanks n regards Krishna PRASAD.

    fttyhtrhyfytrytrysetyetytesystryrty

    C D 2 Replies Last reply
    0
    • Y yadlaprasad

      Hi, i am developing a search engine.when i type a keyword in text box,the matched word should be highlighted and all the results should be appeared. sending sample code would be appreciable. Thanks n regards Krishna PRASAD.

      fttyhtrhyfytrytrysetyetytesystryrty

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I guess you want to parse the page, so that when you show it, you've wrapped the word in question in a div that sets a style to change it's color. Like Google does. So, you've got the rest done, and just need to get the syntax highlighting to work ?

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • Y yadlaprasad

        Hi, i am developing a search engine.when i type a keyword in text box,the matched word should be highlighted and all the results should be appeared. sending sample code would be appreciable. Thanks n regards Krishna PRASAD.

        fttyhtrhyfytrytrysetyetytesystryrty

        D Offline
        D Offline
        dilipv 0
        wrote on last edited by
        #3

        hi yadlaprasad, You wanna make use of Google's strategy which simplifies your search structure. I seen one article based on it, which helps you alot. Please check out this link. http://www.codeproject.com/KB/IP/Spideroo.aspx Hope this will help you. Thanks & Regards

        Dilip Kumar Vishwakarma Programmer .Net Consulting

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups