Bing Search

Friends, I am by no stretch what one would call a developer, but lack of resources often requires me to dive into code on my own. I only needed to add a simple web search box to my SharePoint landing page, but I couldn’t find a simple way. Google has a simple method, but I wanted to use Bing as I find their search results often more accurate. Plus, if I’m already in the MS stack I may as well go ahead and use their brand.

Unfortunately, Microsoft stopped supporting their method of simply adding a search box in favor of the more robust Bing API. More power to them, but as I stated before – I am not a developer. APIs and API documentation are useless to me unless they come with exact code samples. I could not find a one…lot’s of code, but none of it complete. After doing some research and scrounging I ended up with this:

<FORM method=GET action="" target="_blank">
<A HREF="" target="_blank">
<IMG SRC="/PublishingImages/img_windowsBingLogo.png" border="0">
<INPUT TYPE=text name=search_phrase size=42 maxlength=255 value="">
<INPUT type="image" SRC="" alt="Search Bing!">

Make an html out of it and render it in a Page Viewer web part. It works like a champ for me.

This entry was posted in SharePoint and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *