ControlCollection

Alexe

New Member
in vb6 and asp(i think) you were allowed to loop thru collections by:<BR><BR>for each control in FORMNAME<BR> control.text=""<BR>next<BR><BR>what is the equivalent in asp.net? I'm trying to clear the text in texboxes that are controls that belong to a panel. i know their is a way to do it, but i just can't quite get it. <BR>I want to do the same, but go through all the objects (textbox, labels, datagrids etc) on a page. I have not yet figured out a way to do this successfully.<BR><BR>Any help would be appreciated.<BR>
 
Back
Top