one more issue with looping through controls....

M

Milsnips

hi there,

i have just noticed that when i loop through controls on a page that has a
RequiredFieldValidator, it finds a reqFieldValidator, but also finds a label
which is the same control.

strange, as i only have 1 RequiredFieldValidator and textbox on the page,
yet "TypeOf ctl Is Label" also returns true! has anybody come across this,
and how do i get around to only returning the correct control?

thanks,
Paul.
 

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,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top