Click here to Skip to main content
15,892,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: to print or save datagrid control in asp.net 1.1 Pin
Praveen_S26-Apr-06 1:51
Praveen_S26-Apr-06 1:51 
QuestionComponentArt give me componentart_webui_client/2006_1_1208/A573G988.js not found Pin
sasire1825-Apr-06 21:31
sasire1825-Apr-06 21:31 
AnswerRe: ComponentArt give me componentart_webui_client/2006_1_1208/A573G988.js not found Pin
minhpc_bk26-Apr-06 0:05
minhpc_bk26-Apr-06 0:05 
QuestionControl '_ctl0__ctl2_lbl1' of type 'TextBox' must be placed inside a form tag with runat=server. Pin
MissionSuccess25-Apr-06 21:30
MissionSuccess25-Apr-06 21:30 
AnswerRe: Control '_ctl0__ctl2_lbl1' of type 'TextBox' must be placed inside a form tag with runat=server. Pin
minhpc_bk25-Apr-06 22:44
minhpc_bk25-Apr-06 22:44 
QuestionGoogle Web Service returned and open a new page? Pin
nets070625-Apr-06 20:48
nets070625-Apr-06 20:48 
AnswerRe: Google Web Service returned and open a new page? Pin
minhpc_bk26-Apr-06 0:01
minhpc_bk26-Apr-06 0:01 
QuestionRe: Google Web Service returned and open a new page? Pin
TheEagle28-Jun-06 17:49
TheEagle28-Jun-06 17:49 
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
Questiondifference between configSource and file attributes in web.config Pin
chakkara200325-Apr-06 19:34
chakkara200325-Apr-06 19:34 
AnswerRe: difference between configSource and file attributes in web.config Pin
minhpc_bk25-Apr-06 23:58
minhpc_bk25-Apr-06 23:58 
GeneralRe: difference between configSource and file attributes in web.config Pin
chakkara200326-Apr-06 3:08
chakkara200326-Apr-06 3:08 
QuestionASP.net Ajax Pin
NICE TO MEET25-Apr-06 17:30
NICE TO MEET25-Apr-06 17:30 
AnswerRe: ASP.net Ajax Pin
CWIZO25-Apr-06 21:44
CWIZO25-Apr-06 21:44 
Questiondebug vs 2003 javascript Pin
raquidd2225-Apr-06 17:27
raquidd2225-Apr-06 17:27 
AnswerRe: debug vs 2003 javascript Pin
minhpc_bk25-Apr-06 22:58
minhpc_bk25-Apr-06 22:58 
Questioncommand window vs 2003 Pin
raquidd2225-Apr-06 17:23
raquidd2225-Apr-06 17:23 
AnswerRe: command window vs 2003 Pin
Guffa25-Apr-06 20:20
Guffa25-Apr-06 20:20 
QuestionRedirect back to original page causing problem Pin
OzSoft Solutions25-Apr-06 16:07
OzSoft Solutions25-Apr-06 16:07 
AnswerRe: Redirect back to original page causing problem Pin
Guffa25-Apr-06 20:32
Guffa25-Apr-06 20:32 
GeneralRe: Redirect back to original page causing problem Pin
OzSoft Solutions25-Apr-06 20:39
OzSoft Solutions25-Apr-06 20:39 
QuestionLogin Control, custom authentication Pin
2hdass25-Apr-06 16:00
2hdass25-Apr-06 16:00 
AnswerRe: Login Control, custom authentication Pin
minhpc_bk25-Apr-06 22:51
minhpc_bk25-Apr-06 22:51 
QuestionAsp.net and Flash Variables........... Pin
daviiie25-Apr-06 12:44
daviiie25-Apr-06 12:44 
QuestionHow to round the value of a float in c# Pin
navinkumar425-Apr-06 11:16
navinkumar425-Apr-06 11:16 
AnswerRe: How to round the value of a float in c# Pin
NeverHeardOfMe25-Apr-06 11:44
NeverHeardOfMe25-Apr-06 11:44 

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.