Looking for a reusable class to clear all objects on a web form.
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
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

sacrespRank #1,944 · 754 reputationPosted Dec 5, 2003, 11:14 AM EST
tsuman_inRank #6,374 · 268 reputationPosted Dec 6, 2003, 4:26 AM EST