Question
DataBind
I've got an asp.net c# page that has <%#
DataBinder.Eval(Container.DataItem, "[formatted]") %> attached
to it, but I keep on getting an error saying: Exception Details:
System.ArgumentException: test is neither a DataColumn nor a
DataRelation for table Casino. formatted is actually a sub-sub-sub
table of casino eg:
The XML is:
<Blackjack>
<title> Blackjack </title>
<about> About Blackjack. </about>
<jackpot>
<progressive>
<formatted> $1,158.79 </formatted>
<penceInteger> 115879 </penceInteger>
</progressive>
</jackpot>
<lastWinner> just won $1.50 </lastWinner>
</Blackjack >
but I only want to show the contents of formatted. I've tried changing it to Blackjack>jackpot>progressive>formatted, but it still doesn't work
Thanks for any help
Lucy
The XML is:
<Blackjack>
<title> Blackjack </title>
<about> About Blackjack. </about>
<jackpot>
<progressive>
<formatted> $1,158.79 </formatted>
<penceInteger> 115879 </penceInteger>
</progressive>
</jackpot>
<lastWinner> just won $1.50 </lastWinner>
</Blackjack >
but I only want to show the contents of formatted. I've tried changing it to Blackjack>jackpot>progressive>formatted, but it still doesn't work
Thanks for any help
Lucy
