When I delete a GridView row, I want to display JavaScript confirmation dialog box AND run a function. How do you do that?
Something like that:
protected void GridViewActivities_RowDataBound(object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton lb = (LinkButton)e.Row.FindControl("LinkButton1");
lb.Attributes.Add("onClick", "return confirm('You are sure?'); + MyFunction()");
}
}