Results 1 to 2 of 2

Thread: Iterating through a form

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Location
    Reading
    Posts
    70

    Iterating through a form

    Does anyone know a technique that I could use to iterate my way through an asp.net form.

    What I'm trying to do is go through all of the elements on the form and get their id's so I can pass them on as a paramter to something else.

    Many thanks

  2. #2
    Fanatic Member SkiNLaB's Avatar
    Join Date
    Jan 2002
    Location
    Sydney, Australia
    Posts
    747
    u can loop through the page.controls collection to get all the id's contained in the page, but i doubt it would pick up controls contained in other containers, such as a table, panel etc.

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