ASP.NET CompareValidator cannot find ControlToCompare

G

Guest

I have a form with custom controls. Each custom control contains a TextBox.
When I attempt to dynamically add a CompareValidator to a TextBox which
compares to a TextBox within the other custom control .NET throws the
exception: "Unable to find control id 'txt_element71' referenced by the
'ControlToCompare' property of 'valCompare_txt_element72'."

It appears that .NET can only support setting the ControlToCompare to a
control within the same control heirarchy. Is this true?
 

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,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top