Dynamic creation of a RequiredFieldValidator

L

Loui Mercieca

HI,

I need to dynamically create a RequiredFieldValidator for a control. I am
havind problems when assigning the ControlToValidate property of the
RequiredFieldValidator. The uniqueId and clientID property of the control
return null. How do i assign the ControlToValidate if i cannot get the
control ID. I am creating the RequiredFieldValidator in the prerender event.

Thanks
 
G

Guest

You don't need to assign clientid or uniqueid.
assign ID property of control instead.

regards
bharat
 

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

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top