MDA construct PIM and PSM,define the automatic mapping between the models. This mapping is said the model transformation. Model transformation contains model to model transformation and model to code transformation. By analyzing the three-tier architecture based on ASP.NET,This paper build the MDA framework,define the model transformation rules,composite the model transformation definition,and achieve the transformation between the models.