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?sit
e=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