WebAIM - Web Accessibility In Mind

E-mail List Archives

ASP.Net repeater controls and labeling


From: Martin, Lainie
Date: Mar 22, 2004 11:58AM

Has anyone found a good way to label repeater controls in ASP.Net?

I have a header row with "label for" tags around the corresponding
column header.
Then below that I've got the data repeating for 15 rows down.

But because of the nature of repeaters, the id for each corresponding
text box dynamically generates at run-time. So you can't correspond the "label for" with the "id" at design time.

Any suggestions on how to best handle this?

Thanks - Lainie