Sorry, I did not realize that you were using ASP.NET. In that environment, is it not possible to use regular <input> and <button> elements, with event handlers as discussed above -- or, if you wish to use asp:TextBox and asp:Button, perhaps you can use a server-side Response.Redirect? *
* That idea is not mine. I found it a moment ago in a 2008 article by Scott Mitchell, an ASP.NET developer, consultant, trainer, and author of several books. In this article he describes how he implemented a Custom Search Engine (CSE) search box in ASP.NET: http://dotnetslackers.com/articles/aspnet/Implementing-Search-in-ASP-NET-with-Google-Custom-Search.aspx#Embedding_the_Search_Box_in_an_ASP.NET_Page_with_a_Postback_Form (Although his article is about a CSE project, the relevant information from that section should be applicable in your case as well. Note where he discusses the two techniques just mentioned.) I don't know ASP.NET, so I can't advise further. -- omr -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
