public partial class Products : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
private void InitView()
// Create the MVP relationship.
// This is the ASPX view initializer and page redirector implementation.
ProductsPresenter presenter = new ProductsPresenter(productsView, new Model.ProductDAO());
presenter.RequestProductEdit += new EventHandler<SingleValueEventArgs<int>>(RequestProductEditListener);
private void RequestProductEditListener(object sender, SingleValueEventArgs<int> e)
int productID = e.Value;
Response.Redirect("ProductEdit.aspx?product=" + productID.ToString(), true);
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
Man throws away trove of Bitcoin worth $7.5 million