I think my subject line pretty much asks the question. I have a control inside a nested repeater that I need to validate.
Here's a quick 'n dirty as to how it looks (note: attributes/lines left out for brevity):
<asp:Repeater ID="outsideRepeater">
<ItemTemplate>
<asp:Repeater ID="middleRepeater">
<ItemTemplate>
<asp:Repeater ID="insideRepeater">
<ItemTemplate>
<asp:TextBox ID="someDate" CausesValidation="true" />
</ItemTemplate>
</asp:Repeater>
</ItemTemplate>
</asp:Repeater>
</ItemTemplate>
</asp:Repeater>
<asp:RegularExpressionValidator ID="valSomeDate" ControlToValidate="someDate">
</asp:RegularExpressionValidator>
The number of times that "someDate" can repeat is irrevelant; the point is that "someDate" can repeat.
When I run this, I get:
Unable to find control id 'someDate' referenced by the 'ControlToValidate' property of 'valSomeDate'.
How do I get around this?
Thanks!