Beispiel #1
0
 private void dlstProducts_ItemCommand(object source, DataListCommandEventArgs e)
 {
     if (e.CommandName == "check")
     {
         int productId = int.Parse(dlstProducts.DataKeys[e.Item.ItemIndex].ToString(), NumberStyles.None);
         if (SubSiteProducthelper.AddSubjectProduct(subjectType, productId))
         {
             BindSubjectProducts();
         }
     }
 }