For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > October 2004 > one more issue with looping through controls....









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author one more issue with looping through controls....
Milsnips

2004-10-30, 3:56 pm

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.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com