Dharani,
the problem you are facing is that you have wrapped your text control in a
custom user control,
therefore the control gets renamed to "ctl4_text1", where ctl4 is the id of
your user control.
This is to allow for multiple instances of the same user control on the same
page without naming
collisions (since forms send back in http in key-value-pairs).
VS.Net does not support your approach and I haven't found a solution for
your problem.
I tried dynamically setting the controlToValidate in the validator, but it
only takes a string value
(otherwise you could have looked up the text control using FindControl())
Let me know if you found a solution
Good luck
Stefan
"Dharani Ravindran" <dp******@saipeople.com> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
Hi jonel,
thanks for immediate response. I need to do serverside valiation
using
validationcontrols
<asp:comparevalidator....requiredvalidator
since the id is changed during the load, the controls is not getting
validated.
waiting for your response
thanks
dharni
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!