protected void Page_Init(object sender, EventArgs e) { _presenter = new Presentation.ProductListPresenter(this, ObjectFactory.GetInstance <Service.ProductService>()); this.ddlCustomerType.SelectedIndexChanged += delegate { _presenter.Display(); }; }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack != true) { _presenter.Display(); } }
protected void Page_Init(object sender, EventArgs e) { _presenter = new ProductListPresenter(this, ObjectFactory.GetInstance<Service.ProductService>()); ddlCustomerType.SelectedIndexChanged += delegate { _presenter.Display(); }; }