Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack) //do this setup once, on the first visit
     {
         var controller = new ProductController();
         var data       = controller.AllProductsByCategory();
         CategoryRepeater.DataSource = data;
         CategoryRepeater.DataBind();
     }
 }