コード例 #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.AllProductsCategory();
         CategoryRepeater.DataSource = data;
         CategoryRepeater.DataBind();
     }
 }