Author: RobertGMiller | Posted on: 6/4/2009 8:25:04 PM | Views : 457

Trying to pickup the ID of all the input type controls in an aspx page with a form tag.
The input and select controls to be found all have the runat="server" attribute. Apparently the TextBox type is not detected with the following code.
 Private Sub ListControls(ByVal ctrl As Control, ByRef arrCtrls As ArrayList) If TypeOf (ctrl) Is TextBox Then arrCtrls.Add(CType(ctrl, TextBox).ID) End If For Each ctrl In ctrl.Controls Call ListControls(ctrl, arrCtrls) Next End Sub   Could someo ...

Go to the complete details ...