473,809 Members | 2,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

interacting with google in ASP.NET

3 New Member
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:

<center>
<form method="get" action="http://www.google.com/custom" target="_top">
<table bgcolor="#fffff f">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" 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="ClientId entifierStringR emoved"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="ClientIn dentifierString Removed"></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="cof" value="GALT:#FF FFFF;GL:1;DIV:# FFFFFF;VLC:FFFF FF;AH:center;BG C:FFFFFF;LBGC:F FFFFF;ALC:FFFFF F;LC:FFFFFF;T:F FFFFF;GFNT:

FFFFFF;GIMP:FFF FFF;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
</center>

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

Bob
Mar 4 '07 #1
0 1090

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

Similar topics

1
1524
by: ls | last post by:
Hi, The following URL a has a video entitled "Interacting With Web Sites in Code." The video explains exactly what I am trying to do which is to directly communicate with a website and programmatically post data to a web page and examine the response. Can anyone direct me to where I might find the code used in the video? http://msdn.microsoft.com/vbasic/atthemovies/web/default.aspx
0
1527
by: Mr Bounce | last post by:
Hi, Probably well worn ground, this, but im stumped and need some help, if you could: I'm trying to write some code for a windows service that needs to run in the background polling a server for commands. Certain commands require the service to interact with the application running on the active desktop, currently just to either shut it down or start it.
2
2048
by: gen_tricomi | last post by:
THE IMPORTANCE OF MAKING THE GOOGLE INDEX DOWNLOADABLE I write here to make a request on behalf of all the programmers on earth who have been or are intending to use the Google web search API for either research purposes or for the development of real world applications, that Google make their indexes downloadable. Currently application programmers using the Google web search API are
4
3401
by: Chris Lasher | last post by:
Is there a way to interact with keyboard LEDs (for Caps/Scroll/Num Lock) in Python? I'd like to achieve an effect similar to the *NIX command "setleds -L", but I'm not sure where to start, but I figured someone out there would have an idea or maybe experience with something similar. Thanks very much in advance for your help! Chris
1
7298
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 to Google Map. If you don't know elisp, first take a gander at Elisp Basics. I often write travelogs on my website. If i traveled to Las Vegas, then
3
1166
by: junjun | last post by:
Hi, everyone: Thanks for reading this. My question is, will perl be able to read from a text file one record at a time and then put the extracted record to google, and do the search, and save the hyperlinks of a result text file. I am just sooooo new to perl, and I need your help, any link of example or tuitorial will do me a great favor! Thank you!!! JJ
3
4036
by: Eps | last post by:
Hi, I am writing an mp3 player using wpf, I have three user controls (media library, media controls and a playlist). Obviously I need these to interact with each other, I assume the best way to do this is to use events right ?. Can I raise an event on one user control and have one of the others suscribe to it ? or do I need to have the main window suscribe to it and then pass the message on to the target user control ?.
1
1086
by: =?Utf-8?B?bWFib25k?= | last post by:
Hi I'm running an app that has been designed in VB.Net. Also running is an Internet Explorer window. At a certain point in my app I want to maximize the Internet Explorer window, give it the focus and display it on top. After a certain length of time I want the Internet Explorer window to lose focus, go to back and minimize.
0
10639
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10383
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.