Google Search Api's error

  • Thread starter Thread starter Kalpesh
  • Start date Start date
K

Kalpesh

Please have a look at regular asp.net pages that uses datagrid,
repeater etc
I have seen those pages using following syntax

DataBinder.Eval(Container.DataItem, "PropertyName")

HTH
Kalpesh
 
Hi all,
I have downloaded the google Api's and also got a license Key...
I had written the following code,,

GoogleSearchService search=new GoogleSearchService();
GoogleSearchResult result;
string k="9dVAI55QFHLZLJSB/VlbpasPtY+z64wT";
int i=Convert.ToInt32(ViewState["startIndex"]);
result = search.doGoogleSearch(k,"searchTerms.Text",i,10,true, "", true,
"", "", "");
dlResults.DataSource = result.resultElements;
dlResults.DataBind();

And

<ItemTemplate>
<span style="font-size:15pt;font-weight:bold;">
<%# Container.DataItem.title %>
</span><br />


I have also added the reference for webservice.Can any one suggestme to
solve this error.

The error is............
DataBinder.Eval: 'ResultElement' does not contain a property with the name
title.


Thanks N Regards,
Anuradha.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top