Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > DataBinder.Eval(), how do I select what table I.m goint to bind?
 

DataBinder.Eval(), how do I select what table I.m goint to bind?

Hello...

I Has 2 table in one data set, this data set is fill when I do a httpwebrequest to a WebService. the WebService Send me a XML Datathat give me a 1 data set with 2 tables on it.

I'm Using repeater and this is what I do:

Repeater1.DataSource = anserw (thi is the dataset with the 2 tables);

DataBind();

on the asp page I do this.

<div align=justify style="width:300px; font-size:larger; font-weight:bolder"><%# DataBinder.Eval(Container.DataItem, "Name")%><br /></div>

<div align=right style="color:Red; width:300px; font-size:larger; font-weight:bolder"> Total Stay: <%#DataBinder.Eval(Container.DataItem, "FormattedTotalRate") %> <br /></div>

<div align=right><asp:Button runat=server ID="btSelect" Width="50px" Text="Select" /></div><br />

But this is for table 1 but I need to put a field from table 2

how do I do it? using Databinder.Eval()

XCT Adolfo  Tuesday, April 03, 2007 1:08 PM

XCT Adolfo

I am afraid your question is outof scope for this forum,

here we normally discuss window form programming questions.

you can refer to http://forums.asp.netfor web questions,

Good luck

Bob zhu - SJTU  Wednesday, April 04, 2007 2:23 AM

XCT Adolfo

I am afraid your question is outof scope for this forum,

here we normally discuss window form programming questions.

you can refer to http://forums.asp.netfor web questions,

Good luck

Bob zhu - SJTU  Wednesday, April 04, 2007 2:23 AM

You can use google to search for other answers

Custom Search

More Threads

• HOW TO SAVE RUN TIME DATATATBLE TO AN ACCESS DATABASE???
• BindingSource and program set value
• BindingNavigator - can't save
• TreeNode Tag Property
• tableadapter.insert not working
• Saving Dataset Creates Duplicate Desginer.vb File
• Smart Where Clause in C#
• DataGrid sort
• Binding Navigator - Enable/Disable Save Button
• Help with an editable PK and a datagridview (sql server 2005 + C#)