Skip to content Skip to sidebar Skip to footer

Call Javascript Function From Gridview Rowdeleting Event

I need to call a javascript alert from an if condition inside a gridview in the gvLocations_RowDeleting section. Code is as follows: protected void gvLocations_RowDeleting(object

Solution 1:

Actually I figured it out. Hopefully this will help someone else..Use the code below, works like a charm..

Page.ClientScript.RegisterStartupScript(this.GetType(), "helloworldpopup", "alert('hello world');", true);

Post a Comment for "Call Javascript Function From Gridview Rowdeleting Event"