In recent years, much attention has been devoted to the development and applications of smart grid technologies, with special emphasis on flexible resources such as distributed generations (DGs), energy storages, active loads, and electric vehicles (EVs). Demand response (DR) is expected to be an effective means for accommodating the integration of renewable energy generations and mitigating their power output fluctuations. Despite their potential contributions to power system secure and economic operation, uncoordinated operations of these flexible resources may result in unexpected congestions in the distribution system concerned. In addition, the behaviors and impacts of flexible resources are normally highly uncertain and complex in deregulated electricity market environments. In this context, this paper aims to propose a DR based congestion management strategy for smart distribution systems. The general framework and procedures for distribution congestion management is first presented. A bi-level optimization model for the day-ahead congestion management based on the proposed framework is established. Subsequently, the robust optimization approach is introduced to alleviate negative impacts introduced by the uncertainties of DG power outputs and market prices. The economic efficiency and robustness of the proposed congestion management strategy is demonstrated by an actual 0.4 kV distribution system in Denmark.