I'm creating an MVC2 site which is a new, refreshed version of a site built in Web Forms.
Due to the nature of some of the features and the a database of statistics and their structure there is no one-size-fits-all way to display some of the information needed to be displayed.
Thus, despite following MVC principles elsewhere, in one feature a new partial view needs to be coded for each instance. This means that a View User Control has been made and I've stuck a "code behind" file into it, and extended the ViewUserControl class... much like the Web Forms way of doing it.
Is this really wrong, or can anyone suggest a better way of feeding only vaguely structured data to the partial view without having to put it all in there?
Thanks!