setting a usercontrol property as another control

K

kferron

if i wanted to expose a property on a usercontrol that basically would
work like the way the validators work with the ControlToValidate
property, whats a reliable way of finding the correct control off of a
text property?

I was figuring i could expose a string, allow the consumer to set it,
and then use some technique in the usercontrol to get the reference to
the instance of the control, but i'm not having much luck with actually
finding the control from the parent page by a string that matches the
control ID of the target control.

it would be great if someone could help.. if i have to end up writing a
recursive FindControl method i will, but that makes me feel a little
sick inside.
 

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

Top