protected void DeleteCampaignImgBtn(object sender, EventArgs e) { ImageButton imgBtn = (ImageButton)sender; GridViewRow row = (GridViewRow)imgBtn.Parent.Parent; Label lbId = (Label)GridCampaigns.Rows[row.RowIndex].Cells[0].FindControl("lbId"); lbCampaingDeleteID.Text = lbId.Text; ModelConfirmation.Show(); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "scr", "javascript:Callback2();", true); }
protected void GridCampaigns_RowDeleting(object sender, GridViewDeleteEventArgs e) { try { lbCampaingDeleteID.Text = GridCampaigns.DataKeys[e.RowIndex].Value.ToString(); ModelConfirmation.Show(); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "scr", "javascript:Callback2();", true); } catch (Exception sqe) { } }