Esempio n. 1
0
 protected void datapro_DeleteCommand(object source, DataListCommandEventArgs e)
 {
     if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
     {
         Maticsoft.BLL.Product pronll = new Maticsoft.BLL.Product();
         int proid = int.Parse(datapro.DataKeys[e.Item.ItemIndex].ToString());
         pronll.Delete(proid);
         lblpage.Text = "";
         bind();
     }
 }