Exemplo n.º 1
0
        //delete event
        protected void gvImage_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            GridViewRow row         = (GridViewRow)gvImage.Rows[e.RowIndex];
            Label       lbldeleteid = (Label)row.FindControl("lblImgId");

            BusinessServices.Event objProfile = new BusinessServices.Event();
            objProfile.EventTypeId = int.Parse(lbldeleteid.Text);
            objProfile.DeleteEventType(objProfile);


            EventType();
        }