In this paper we formulate a general framework based on the behavioral approach to dynamical systems, in which various issues regarding interconnection of systems can be addressed. The main part of the framework is that interconnections or compositions of systems can be modelled with interconnection of behaviors and generalized projection operations. Control problems such as supervisory control problem or feedback control problem can be expressed in terms of behavioral interconnection, and therefore can be put into this framework. In the paper we discuss some variants of control problems and provide solutions to them