Пример #1
0
        protected void lnkDelImg_Click(object sender, ImageClickEventArgs e)
        {
            ImageButton btndetails = sender as ImageButton;
            GridViewRow gvrow = (GridViewRow)btndetails.NamingContainer;
            string sID = gvService.DataKeys[gvrow.RowIndex].Value.ToString();
            ServeAtDoorstepService objService = new ServeAtDoorstepService();
            objService.DeleteServiceById(Convert.ToInt32(sID));

            BindServiceGrid();
        }