protected void rpt_list_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "del") { bll.DeleteItem(Convert.ToInt32(e.CommandArgument)); } if (e.CommandName == "edit") { int id = Convert.ToInt32(e.CommandArgument); ProductType item = bll.GetItem(id); item.TypeName = (e.Item.FindControl("txttypename") as TextBox).Text; bll.UpdateItem(item); } PageInit(); }