I have a question concerning the correct place to place the implementation of a design pattern. I have an ASP.NET application built loosely on the Model-View-Controller concept. I have a set data entity objects (the model), a set of application objects (the controller), and my ASP.NET web forms (the view). I've identified two areas in my ASP.NET code where it would be beneficial to apply the Strategy design pattern. However, I'm not entirely sure as to the proper layer to implement this pattern.
The first area seems pretty simple. Some elements of a web form will be disabled/invisible based on the state on a given entity. This appears to be a concern of how the entity is displayed, and therefore should be implemented in the view layer. The second one has me somewhat confused. Based on the state of an entity object, and related to the form display above, I only want to capture select parts of the web form input. I'm not sure if this would be best placed in the view, as it has to with form manipulation, or in the controller, because it is concerned with data capture and validation. This isn't a question of how to implement the Strategy pattern, but where to implement it. Any help would be greatly appreciated. -- --------------------- Scott Banwart RPM International Inc. Systems Developer [EMAIL PROTECTED] ---------------------
