Advertisement

03.21.2008 at 01:54PM PDT, ID: 23260629
[x]
Attachment Details

Pass parameters by post to Google Mini

Asked by JuanLondono in Search Engines, C# Programming Language, Microsoft Visual C#.Net

Tags: ,

I have to search using to Google Mini Search. The form I have is:
<form method="get" action="mysite/search">
        <input type="text" name="q" size="25" maxlength="255" value=""/>
        <input type="hidden" name="site" value="mainsite"/>
        <input type="hidden" name="client" value="cli_resultpage"/>
        <input type="hidden" name="proxystylesheet" value="prox_resultpage"/>
        <input type="hidden" name="output" value="xml_no_dtd"/>
        <input type="hidden" name="num" value="10"/>
</form>
However I need to have a .NET WebUserControl inside the form; the problem is that it needs to be part of a form that runs in the server. If I add runat="server" in the form tag the  action="mysite/search" is not performed.
I tried different things such as
I changed the form method="post" and in the OnClick event of a button that is part of my usercontrol I add Response.Redirect("mysite/search?site=mainsite& and my own parameters") but it didn't work.
Unfortunately I need to use a webusercontrol.
Is there any way to do it?
thank you

Start Free Trial
 
Loading Advertisement...
 
[+][-]03.21.2008 at 03:23PM PDT, ID: 21183692

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Search Engines, C# Programming Language, Microsoft Visual C#.Net
Tags: Microsoft Google, c# .net 2.0 - Google Mini
Sign Up Now!
Solution Provided By: gdefrancesco
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628