I'm building a class that automatically loads a DB record, looks at each DB column name, and fills the associated textbox/label/literal/etc, if it has the same name. I got this idea from Rails, in case that helps clarify what I'm trying to do.
public string presentData(Page thisForm)
{
// .. for each column name
// ... thisForm.FindControl() happens
}
I can't seem to find the Control I want this way, and there could quite possibly be a better way to do this.
Edit: If I can save on performance by doing it another way, definitely suggest it. I have large forms, and a recursive FindControl would cause a growth in performance time.