jaijason

jaijason

  • NA
  • 8
  • 0

Looking for a reusable class to clear all objects on a web form.

Nov 20 2003 11:42 AM
I'm trying to figure out how to make a reusable class to clear web forms. I done it in vb but not sure if it could be done here. This is in c# syntax. I would like it to take all objects from the form, distinguish what type of object it is and then apply its clear method. Seems easy. The only way I see it being done is to go through the forms collection of items. then use maybe a switch statement for each type used and in the switches apply the clear method for that object. Will this work. Anyone done this already. Thanks

Answers (2)