Set Container.DataItem property programmatically
Posted on 2006-04-04
is it possible to set values like the one below for a label, programmatically? If so, in what event would that take place, and what would the syntax look like? Or, if there are reasons why this can only done on the page itself, that would be helpful to know.
dim label1 as new label
label.style.item...??? = ???
Font-Bold = '<%#CBool(GetFontBold(Container.DataItem("XZY")).tostring) %>' <--- set this kind of value
(do something with label)