Create a Custom Control to Wrap the Google JSON/ATOM Custom Search API, Part 2Create a Custom Control to Wrap the Google JSON/ATOM Custom Search API, Part 2

Add design-time features to the GoogleRestApiControl custom control created in part 1

Bipin Joshi

August 3, 2011

11 Min Read
Two men with a computer and a tablet

In Part 1 of this article, we learned the basics of the Google JSON/ATOM Custom Search API and also developed an ASP.NET custom server control to wrap the API for easy use in our web applications. In this part we will add design-time features to the GoogleRestApiControl custom control, such as Smart-tag and custom drop-down lists. In the process, we will discuss how to create a custom control designer, a custom action list, and a custom type converter for our custom control.

As a quick recap, the properties and methods of the GoogleRestApiControl are listed again in Figure 1.

Property / Method

Figure 1: Properties and methods of GoogleRestApiControl

Url

ApiKey

CustomSearchEngineId

SearchCriteria

LanguageFilter

SafeSearchOption

FilterDuplicateResults

SearchResultFormat

ClientCallbackName

GetSearchResults()

GetSearchResultsAsSyndicationItems()

GetClientScriptBlock()

Read more about:

Alphabet Inc.
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like