Hi Andy,
After going thru the task that you have in hand i would still suggest the
same way as i had told you earlier because of the following reasons:
1. Non Bulky code for UI - If you decide to make use of parametrized class,
then you can be rest assured that it is not going to make your UI page bulky,
the reason is even if you write the code in data access layer then also that
DLL will be loaded in the context of Page DLL, in essence lines of code
written in the data access class is not going to reduce the actual code being
loaded in runtime.
2. Runtime - As a general practice we should choose to do most of the things
statically rather than at runtime. For exampls, if you choose to write the
code in Data access layer then to be able to grab the UI controls of the page
you would first need the Http Context (executing context) and then only you
would be able to access the controls.
ALTERNATIVE Approach:
In .NET 2.0 we have a new feature called Cross-page posting, in this you can
have a UI page posting itself to a different page and in the code behind of
that page you can easily access the previous page's controls. The reason you
are able to do so is in this the UI page (having the controls) is a strongly
typed class and the next page can easily access this class.
Take a look at the following URL for cross-page posting example:
http://blogs.msdn.com/tinghaoy/archive/2005/12/15/504357.aspx
regards,
Joy