How to Insert a Google Custom Search Box

Topics: Business Logic Layer
Mar 14, 2009 at 3:44 AM
I could not the Google Custom Search (search with AdSense) to work in a TextBox because the HTML editor would remove the <form> code needed to run the widget. I finally got this to work by inserting an <iframe> into the TextBox. e.g.

In the TextBox widget:
<iframe src="" width="250" height="55" frameborder="0"></iframe>

In the iframe document, you wrap the code you get from Google AdSense.

Thought I'd pass this along.
Mar 14, 2014 at 3:10 AM
Edited Mar 14, 2014 at 3:11 AM
We can use Google custom search in our blog engine very easily. I have done it for my blog, can check on my blog.
Complete code for this has been written on search.aspx and search.aspx.cs.
I have also written css for override search results
For complete information please see