G
Guest
Hi I am confused with databinding - i have created repeaters and gridviews
and i understand that <%# Eval("Price") %> returns the value of price thats
bound, and i even understand that i can do <%#
String.Format("0:f2",Eval("Price")) %> will format my values. What i cant
understand though is how to further format things like that... for example,
if i want to write a class to convert the price to another currency i thought
i could do something like this:
<&
String.Format("{0:f2}",EuroExchange.ConvertCurrency("GBP","EUR",Eval("Price")) %>
I get a message saying the name "EuroExchange" does not exist in this
context. Why is this? how could i make a class exist in that context?
Where can i find more information on this?
Regards
Owen
and i understand that <%# Eval("Price") %> returns the value of price thats
bound, and i even understand that i can do <%#
String.Format("0:f2",Eval("Price")) %> will format my values. What i cant
understand though is how to further format things like that... for example,
if i want to write a class to convert the price to another currency i thought
i could do something like this:
<&
String.Format("{0:f2}",EuroExchange.ConvertCurrency("GBP","EUR",Eval("Price")) %>
I get a message saying the name "EuroExchange" does not exist in this
context. Why is this? how could i make a class exist in that context?
Where can i find more information on this?
Regards
Owen