H
Helen
Is there a generic way to deal with html form elements in ASP.NET? A
couple of the components I've written only really need to know that
they're dealing with an element that has a value and can do a postback
but I've had to write seperate classes (or horriblely hackish code) to
make the components work with textboxes, dropdown lists and checkboxes
because they all do things slightly differently.
I was kind of hoping there'd be a interface called FormElement that
the input and select fields implemented but the only thing these all
have in common is WebControl and that's too general for what I want.
Is there an alternative to writing three or four different versions of
my controls?
Helen
couple of the components I've written only really need to know that
they're dealing with an element that has a value and can do a postback
but I've had to write seperate classes (or horriblely hackish code) to
make the components work with textboxes, dropdown lists and checkboxes
because they all do things slightly differently.
I was kind of hoping there'd be a interface called FormElement that
the input and select fields implemented but the only thing these all
have in common is WebControl and that's too general for what I want.
Is there an alternative to writing three or four different versions of
my controls?
Helen