By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,652 Members | 1,468 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,652 IT Pros & Developers. It's quick & easy.

interacting with google in ASP.NET

P: 3
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 just use google as an example here since it is well known.

Here is a script (below) for allowing people to place a google search box on their page. I plan to show a much larger duplication of it when there is a
mouse over event (or any acceptable event). The asp:button (the new bigger search button) would send the search words off to google as though they clicked the original small button that google uses I would need to send google the search words contained in this larger asp:TextBox where the query was actually typed into and save their search string in a C# code behind string for further use. Dealing with returned search page results is not a problem.

Also on the line: <input type="hidden" name="hl" value="en"></input>
I'm assumiing all ads will be sent in English, or does google change this dynamically based on browser settings? If not is there any practical way
to change this based on browser settings?

Also, if anyone is curious, I am trying to develop web sites (and new controls for others) for disabled individals

(right now: visually impaired, but not blind). Any help I would greatly appreciate it.

Here is the code:

<form method="get" action="" target="_top">
<table bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="">
<img src="" border="0" alt="Google" align="middle"></img></a>
<label for="sbi" style="display: none">Enter your search terms</label>
<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none">Submit search form</label>
<input type="submit" name="sa" value="Search" id="sbb"></input>
<input type="hidden" name="client" value="ClientIdentifierStringRemoved"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="ClientIndentifierStringRemoved"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>

<input type="hidden" name="hl" value="en"></input>

Please remember, something obvious to you may not be obvious to me. Thanks in advance.

Mar 4 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.