473,385 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Google search

Hi all

I want to put a google search on my website. My options are

1) Create a new <form> outside of my aspx form.

Problem: I have a HeaderControl and FooterControl on each page to give my
site a uniformed look. Placing it outside of the <form> would mean it would
have to come after the FooterControl which, as you can probably guess, would
make everything look wrong.
2) Use an ASP:TextBox and ASP:Button, and do a Response.Redirect from the
code behind.

Problem: Web users are used to typing in their query and then hitting enter.
On this WebForm there is another button which appears earlier on the page.
Hitting enter causes this button to be clicked and not my Search button.

Any suggestions?
--
Pete
====
ECO Modeler, Audio compression components, DIB graphics controls,
FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com

My blog
http://blogs.slcdug.org/petermorris/
Nov 19 '05 #1
2 2423
2) Use an ASP:TextBox and ASP:Button, and do a Response.Redirect from the
code behind.

Problem: Web users are used to typing in their query and then hitting enter. On this WebForm there is another button which appears earlier on the page.
Hitting enter causes this button to be clicked and not my Search button.
See http://www.metabuilders.com/Tools/DefaultButtons.aspx for a solution to
the Enter key behavior.

Also don't forget the third option, which is Google's Web Services API;

http://www.google.com/apis/

And the fourth option;

+ Make the textbox a standard HTML control, no runat=server
+ Bind your Search button to a javascript routine that just opens a new
window, with the Google search results.

You could do that either by just formatting a Google URL with the result in
it, or you could build a custom Googlequery .aspx page that take a param and
does a nicely formatted result.

/// M


Any suggestions?
--
Pete
====
ECO Modeler, Audio compression components, DIB graphics controls,
FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com

My blog
http://blogs.slcdug.org/petermorris/

Nov 19 '05 #2
By signing up for free with Google Adsense you can have a slick, free
integrated google search box on your page and maybe even make some money
from it.
Here's the details:
https://www.google.com/adsense/ws-overview

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Peter Morris [Droopy eyes software]" <pe**@not.this.or.this.droopyeyes.com>
wrote in message news:Oq**************@TK2MSFTNGP10.phx.gbl...
Hi all

I want to put a google search on my website. My options are

1) Create a new <form> outside of my aspx form.

Problem: I have a HeaderControl and FooterControl on each page to give my
site a uniformed look. Placing it outside of the <form> would mean it
would have to come after the FooterControl which, as you can probably
guess, would make everything look wrong.
2) Use an ASP:TextBox and ASP:Button, and do a Response.Redirect from the
code behind.

Problem: Web users are used to typing in their query and then hitting
enter. On this WebForm there is another button which appears earlier on
the page. Hitting enter causes this button to be clicked and not my Search
button.

Any suggestions?
--
Pete
====
ECO Modeler, Audio compression components, DIB graphics controls,
FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com

My blog
http://blogs.slcdug.org/petermorris/

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: fuzzyman | last post by:
I've hacked together a 'GoogleCacheServer'. It is based on SimpleHTTPServer. Run the following script (hopefully google groups won't mangle the indentation) and set your browser proxy settings to...
19
by: Christian Hvid | last post by:
Hello groups. I have a series of applet computer games on my homepage: http://vredungmand.dk/games/erik-spillet/index.html http://vredungmand.dk/games/nohats/index.html...
3
by: Alastair | last post by:
Hello guys, I've been building a search facility for an intranet site I'm part of developing and we've been building a search engine using Index Server. It mostly works, however there have been...
3
by: Johann Blake | last post by:
This aticle presents factual evidence that Google's PageRank, inbound links and keywords are irrelevent to your placement in the search results. It presents several case studies that show...
6
by: shapper | last post by:
Hello, If you make a search in Google for "CNN" you will get the result as follows: CNN.com - Breaking News, US, World, Weather, Entertainment & Video ... CNN.com delivers the latest...
1
by: xahlee | last post by:
Elisp Tutorial: Make Google Earth Xah Lee, 2006-12 This page shows a example of writing a emacs lisp function that creates a Google Earth file, and creates a link to the file, as well a link...
4
by: jerm.hannley | last post by:
I am creating a webpage for my office. The start page is a search engine that searches a company database. it consists of a text box and a button called search. I was wondering if i could add...
0
by: rbunn83815 | last post by:
Hello Everyone! Before we start I'm a javascipt newbie as well as trying to get javascipt to work with the C# code behind page in ASP.NET. C# alone I can do fairly well with however. I'll...
9
by: artistography | last post by:
Hello, I was wondering: If obfuscation isn't all that good, why does Google obfuscate its search results' code? Okay, I realize they're a commercial entity and need to do it. How do they do it?...
0
by: passion | last post by:
"Specialized Search Engines" along with Google Search Capability (2 in 1): http://specialized-search-engines.blogspot.com/ Billions of websites are available on the web and plenty of extremely...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.