示例#1
0
 protected void rpt_list_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (e.CommandName == "del")
     {
         bll.DeleteShopComment(Convert.ToInt32(e.CommandArgument));
     }
     PageInit();
 }
 protected void myGrid_ItemCommand(object source, DataGridCommandEventArgs e)
 {
     if (e.CommandName == "del")
     {
         bll.DeleteShopComment(Convert.ToInt32(e.CommandArgument));
     }
     if (e.CommandName == "chk")
     {
         bll.UpdateShopComment(Convert.ToInt32(e.CommandArgument), 2);
     }
     if (e.CommandName == "unchk")
     {
         bll.UpdateShopComment(Convert.ToInt32(e.CommandArgument), 1);
     }
     PageInit();
 }