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 website and google

Search a website and google

Scheduled Pinned Locked Moved ASP.NET
questioncsharphelp
5 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.
  • G Offline
    G Offline
    Goodway
    wrote on last edited by
    #1

    hi everyone in many sites, their is two options for doing search: search the website or google search. i know that the first one search all the pages in this site only and the second make a search like in google. -i think the first one can be done in .net, can anyone help me for doing a search in all the pages of a website? -how can i implement the second search (google search) should i subscribe with google?? or something else. thanks

    J 2 Replies Last reply
    0
    • G Goodway

      hi everyone in many sites, their is two options for doing search: search the website or google search. i know that the first one search all the pages in this site only and the second make a search like in google. -i think the first one can be done in .net, can anyone help me for doing a search in all the pages of a website? -how can i implement the second search (google search) should i subscribe with google?? or something else. thanks

      J Offline
      J Offline
      Jon G
      wrote on last edited by
      #2

      I have a script setup on my page at home to run searches off google. its basically just a redirection. you can see it at http://www.gizmocoder.com/Home/template.aspx[^] To make it work, its basically something like this: 'For Web Response.Redirect("http://www.google.ca/search?q=" & TextBox1.Text) 'For Images Response.Redirect("http://www.google.ca/images?q=" & TextBox1.Text) and so on.. its quite simple Jon G www.Gizmocoder.com

      Z 1 Reply Last reply
      0
      • G Goodway

        hi everyone in many sites, their is two options for doing search: search the website or google search. i know that the first one search all the pages in this site only and the second make a search like in google. -i think the first one can be done in .net, can anyone help me for doing a search in all the pages of a website? -how can i implement the second search (google search) should i subscribe with google?? or something else. thanks

        J Offline
        J Offline
        Jon G
        wrote on last edited by
        #3

        For site searches, I thought the only "real" way of doing it is by having a Database backend to your site. You can then search the records of your DB for any relevant fields. Other than that, doing it through text files must be extremely innefficient, and cumbersome. If you are really interested in a site-search, you may want to setup a database setup for your site. Jon G www.Gizmocoder.com

        1 Reply Last reply
        0
        • J Jon G

          I have a script setup on my page at home to run searches off google. its basically just a redirection. you can see it at http://www.gizmocoder.com/Home/template.aspx[^] To make it work, its basically something like this: 'For Web Response.Redirect("http://www.google.ca/search?q=" & TextBox1.Text) 'For Images Response.Redirect("http://www.google.ca/images?q=" & TextBox1.Text) and so on.. its quite simple Jon G www.Gizmocoder.com

          Z Offline
          Z Offline
          ZimCoder
          wrote on last edited by
          #4

          How would i go about it if i wanted to display the results within my own page .. so i could manipulate them further. Response.Redirect will pass control to google.com zimcoder What Democracy?? Jesus Christ is King and if you do not like... well you can go to hell!

          J 1 Reply Last reply
          0
          • Z ZimCoder

            How would i go about it if i wanted to display the results within my own page .. so i could manipulate them further. Response.Redirect will pass control to google.com zimcoder What Democracy?? Jesus Christ is King and if you do not like... well you can go to hell!

            J Offline
            J Offline
            Jon G
            wrote on last edited by
            #5

            This is different then, you will need to get the google APIs which can be found at http://www.google.com/apis/ Google will allow you to perform up to 1000 searches a month. This service is free of charge. This is the only way you can return searches onto your own page. Jon G www.Gizmocoder.com

            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