G
Guest
I am working on an ASP.net application and I have a base class for all my
pages to inherit. In this class I have a Subroutine named ResetControls
which can go through and set certain types of controls to the defaults that I
specify. I chose to place it here so that all of my pages can use it and I
do not have to place the code on everypage. However, I noticed that if I
have a HTML table running as a server control within another table running as
a server control; the controls inside do not go to the default values that I
specify but all others not in tables do. Is there a way that I can
recursively go through the control tree to reset them so that no matter how
many nested tables are on a page they all can reset to their defaults?
pages to inherit. In this class I have a Subroutine named ResetControls
which can go through and set certain types of controls to the defaults that I
specify. I chose to place it here so that all of my pages can use it and I
do not have to place the code on everypage. However, I noticed that if I
have a HTML table running as a server control within another table running as
a server control; the controls inside do not go to the default values that I
specify but all others not in tables do. Is there a way that I can
recursively go through the control tree to reset them so that no matter how
many nested tables are on a page they all can reset to their defaults?