lunchbox88
Programmer
C#
My goal is to validate the text entered in to textboxes to make sure there aren't any illegal characters before it gets written to the database.
My thought is to pass a page (and all it's controls) to a class, loop through the controls on that page to identify all the textboxes,validate the text within those textboxes, and then return a boolean to the page.
Is what I'm thinking even possible? Is there a better way to handle?
My goal is to validate the text entered in to textboxes to make sure there aren't any illegal characters before it gets written to the database.
My thought is to pass a page (and all it's controls) to a class, loop through the controls on that page to identify all the textboxes,validate the text within those textboxes, and then return a boolean to the page.
Is what I'm thinking even possible? Is there a better way to handle?