modifying Template control attributes

M

Mark

I have a user control which contains a datagrid of textboxes and dropdowns
which are all template columns.
I need to validate the fields when the user posts back and change the
CSSClass property on any offending fields.
It looks like you can ONLY modify properties of controls in template
controls on the item_created event. ?
I can get a reference to the control in other events AFTER the item_created
and get the values, but at that point
when I set the CSSClass it doesn't work. The code doesn't break, but the
style isn't applied.

can someone confirm this, or is there some way you can modify template
column controls AFTER the item_created event?
thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top