user clicked on edit or delete button in Grid View need to fire the modal window
event of grid that triggers on every row bind. In this, inject JS code to open the modalpopup on click of a control.
protected void GridView_RowDataBound(Object sender, GridViewRowEventArgs e)
DataControlRowType rtype = e.Row.RowType;
if (rtype == DataControlRowType.DataRow)
LinkButton l = (LinkButton)e.Row.FindControl("LinkButton1");