Results 1 to 2 of 2

Thread: For Each iteration on a WebForm

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Posts
    37

    For Each iteration on a WebForm

    Hi

    How can I iterate through all the webcontrols on a webform. I am interested in the TextBox controls only.

    In a WinForm I could do something like this.

    Dim txtControl As Control
    For Each txtControl in Me.Controls
    If TypeOf(txtControl) Is TextBox Then
    ' Do something
    End If
    Next

    Thanks in advance

    Harold Hoffman

  2. #2
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018
    I dont know if this is of much help but you never know :

    http://www.dotnet247.com/247referenc...25/128003.aspx

    Parksie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width