vb.net class help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • paulbearden

    #1

    vb.net class help

    Greetings,

    I'm fairly new to .net (especially 2.0). I using vb.net, 2.0 framework and
    Visual Studio 2005.

    I'm trying to create a class with a member that will iterate through a web
    page and discover all the controls on the page, list their types, names and
    what value they hold. What I want is to be able to save all the fields on
    any page without having to know what fields there are to begin with. I'll
    then save the fields and values to a collection for later retrieval.

    Ultimately I want to create a class that can iterate through all the pages
    on the site calling the page class for each page so all the controls on the
    entire site can be saved and retrieved.

    This will allow me to, for instance, to set the value of a contol three
    pages back without having to pass variables or get/set a bunch of sessions.
    I will also allow me to enable/disable controls site wide or page wide from
    anywhere on the site.

    When I attempt to 'discover' what controls are on a given page I have
    managed to determine the control types but not their names.

    Can anyone provide an example or point me to where I might find one?
    Thanks!


Working...