Example #1
0
        protected void rptKey_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
            {
                if (e.CommandName.ToLower().Equals("del"))
                {
                    string id=e.CommandArgument.ToString();


                    Resource r = new Resource();
                    r.DelLightBox(new Guid(id));



                    bind();

                }

            }

        }
Example #2
0
        protected void grvMyLightBox_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            string id = this.grvMyLightBox.DataKeys[e.RowIndex].Value.ToString();
            
            Resource r = new Resource();
            r.DelLightBox(new Guid(id));

            bindGrid();
        }