ASP.Net databinding in tag
Posted
by Psytronic
on Stack Overflow
See other posts from Stack Overflow
or by Psytronic
Published on 2010-06-03T10:37:05Z
Indexed on
2010/06/03
10:44 UTC
Read the original article
Hit count: 179
ASP.NET
|databinding
I know you can bind in the code-behind, but I don't quite understand how it works if you want to declare it within the controls tag. This is for a custom collection.
I thought it was just
Datasource="<%# MyCollection %>"
Where MyCollection is an exposed property of the class in the code behind?
MyCollection{ get{ return _MyCollection;}}
Something like that. But it doesn't seem to work that way, so can I not bind this way, or am I missing something?
© Stack Overflow or respective owner