pattern (2) 썸네일형 리스트형 Left Login Menu만들기 By FactoryPattern 오늘 업무중에 유저의 타입별로 왼쪽 로그인 부분을 달리 보여 달라는 요청이 있었다. 전에는 html에서 비지니스 로직을 구현하였는데 이번에 내가 구현한건 아래와 같다. 각 페이지별 UserControl을 만든다. 1) AUser.ascx , BUser.ascx , CUser.ascx 2)그런 다음 아래와 같이 UserLoginFactory를 만든다. public class UserLoginFactory { public UserLoginFactory() { } public static UserControl GetInstance(UserType type) { Control result= null; Page page = new Page(); switch (type) { case UserType .NonStud.. 꼭 봐야할 기사(Respository Pattern, Nhibernate, IOC, DI) http://www.codeproject.com/KB/aspnet/IOC_Works.aspx 이전 1 다음