Hi,
I have a fieldset with legend text as an element on a nestedviewtemplate and I would like to be able to change the text dynamically from the codebehind. The usual methods don't seem to work - I can't seem to cast an item as type legend so I'm unsure how to find the control. What is the best way of going about this?
Cheers,
Christian
Edit:
FWIW I have made my own workaround for this issue. I placed a label within the legend tags and then used casting and the FindControl method to locate and edit this element (this is the usual way). I would still be interested as to how one would access the legend element directly, however this is no longer a pressing issue. Thanks.
I have a fieldset with legend text as an element on a nestedviewtemplate and I would like to be able to change the text dynamically from the codebehind. The usual methods don't seem to work - I can't seem to cast an item as type legend so I'm unsure how to find the control. What is the best way of going about this?
Cheers,
Christian
Edit:
FWIW I have made my own workaround for this issue. I placed a label within the legend tags and then used casting and the FindControl method to locate and edit this element (this is the usual way). I would still be interested as to how one would access the legend element directly, however this is no longer a pressing issue. Thanks.