Click here to Skip to main content
15,885,767 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: help me guys to know how to handle a textbox_changed event Pin
swilly126-Jun-06 8:37
swilly126-Jun-06 8:37 
GeneralRe: help me guys to know how to handle a textbox_changed event [modified] Pin
Mohammed Amine26-Jun-06 10:03
Mohammed Amine26-Jun-06 10:03 
GeneralRe: help me guys to know how to handle a textbox_changed event Pin
Mohammed Amine1-Aug-06 0:32
Mohammed Amine1-Aug-06 0:32 
QuestionHow is Embedding (.swf) in web pages? Pin
coolshad25-Jun-06 6:26
coolshad25-Jun-06 6:26 
GeneralRe: How is Embedding (.swf) in web pages? Pin
Guffa25-Jun-06 9:46
Guffa25-Jun-06 9:46 
AnswerRe: How is Embedding (.swf) in web pages? Pin
Graham Nimbley25-Jun-06 10:01
Graham Nimbley25-Jun-06 10:01 
Questiondatagrid row-nearest row from today Pin
Dhruvil25-Jun-06 5:36
Dhruvil25-Jun-06 5:36 
QuestionGoogle Search Web Service Pin
TheEagle25-Jun-06 4:15
TheEagle25-Jun-06 4:15 
Hi..

I have visual studio 2003 and I am trying to use Google Search Web Service(C#).But I got the error:

DataBinder.Eval: 'EProjects.googleapi.ResultElement' does not contain a property with the name title.

The source code of the Web Form that should display the Google Search Results:

using googleapi;
/// <summary>
/// Summary description for GoogleResults.
/// </summary>
public class GoogleResults : System.Web.UI.UserControl
{
protected System.Web.UI.WebControls.ImageButton imgPrev;
protected System.Web.UI.WebControls.ImageButton imgNext;
protected System.Web.UI.WebControls.DataList lGoogle;
public EProjects.googleapi.GoogleSearchResult gsR;
public EProjects.googleapi.GoogleSearchService gcs;

private void Page_Load(object sender, System.EventArgs e)
{
gcs=new googleapi.GoogleSearchService();
gsR=gcs.doGoogleSearch(licenceKeyString,Request.QueryString["Query"],
0, 1,true, "", true, "", "", "");
PopulatelGoogle(gsR);
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
///Required method for Designer support - do not modify
///the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void PopulatelGoogle(GoogleSearchResult gsR)
{
lGoogle.DataSource=gsR.resultElements;
lGoogle.DataBind();
}
}
}


The HTML code of the same page:

<table height="100%" width="100%">
<tr>
<td colSpan="2">
<asp:datalist id="lGoogle" runat="server">
<ItemTemplate>
<span style="font-size:17px;font-weight:bold;">
<%#DataBinder.Eval(Container.DataItem,"title")%>
</span></br>
<%#DataBinder.Eval(Container.DataItem,"snipper")%>
</br> <a href='<%#DataBinder.Eval(Container.DataItem,"URL")%>'>
<%#DataBinder.Eval(Container.DataItem,"URL")%>
</a>
</ItemTemplate>
<SeparatorTemplate>
</p>
</SeparatorTemplate>
</asp:datalist></td>
</tr>
<tr>
<td align="left"><asp:imagebutton id="imgPrev" Runat="server"></asp:imagebutton></td>
<td align="right"><asp:imagebutton id="imgNext" Runat="server"></asp:imagebutton></td>
</tr>
</table>

I tried to solve this problem for a long time but I couldnt please help.

"I am too late but i will never give up"
Questionmacromedia flash in asp.net Pin
Hasan Jaffal25-Jun-06 3:55
Hasan Jaffal25-Jun-06 3:55 
AnswerRe: macromedia flash in asp.net Pin
Guffa25-Jun-06 5:12
Guffa25-Jun-06 5:12 
GeneralRe: macromedia flash in asp.net Pin
Hasan Jaffal25-Jun-06 21:30
Hasan Jaffal25-Jun-06 21:30 
QuestionOpening new browser window in a web user control Pin
Mohamed El Gohary25-Jun-06 3:38
Mohamed El Gohary25-Jun-06 3:38 
AnswerRe: Opening new browser window in a web user control Pin
Guffa25-Jun-06 5:12
Guffa25-Jun-06 5:12 
GeneralRe: Opening new browser window in a web user control Pin
Mohamed El Gohary25-Jun-06 21:20
Mohamed El Gohary25-Jun-06 21:20 
GeneralRe: Opening new browser window in a web user control Pin
Guffa27-Jun-06 8:15
Guffa27-Jun-06 8:15 
Questionacrobat pdf Pin
sund7wells24-Jun-06 23:20
sund7wells24-Jun-06 23:20 
QuestionVoting with ASP.NET Pin
YuanHong.T24-Jun-06 21:59
YuanHong.T24-Jun-06 21:59 
Questionfull text search Pin
YasserSalama24-Jun-06 19:39
YasserSalama24-Jun-06 19:39 
Questionshare point login with asp.net script Pin
ritesh4web24-Jun-06 17:47
ritesh4web24-Jun-06 17:47 
AnswerRe: share point login with asp.net script Pin
ritesh4web25-Jun-06 18:30
ritesh4web25-Jun-06 18:30 
QuestionFlash Development Pin
oskardiazdeleon24-Jun-06 14:02
oskardiazdeleon24-Jun-06 14:02 
QuestionCentering a masterpage Pin
grantg24-Jun-06 12:47
grantg24-Jun-06 12:47 
Question("login.asp?l=incorrect_login_or_password") meaning Pin
khasiguy24-Jun-06 9:55
khasiguy24-Jun-06 9:55 
AnswerRe: (&quot;login.asp?l=incorrect_login_or_password&quot;) meaning [modified] Pin
Guffa24-Jun-06 10:08
Guffa24-Jun-06 10:08 
GeneralRe: (&quot;login.asp?l=incorrect_login_or_password&quot;) meaning Pin
khasiguy24-Jun-06 22:33
khasiguy24-Jun-06 22:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.