i have got two update panels in my page in first updatepanel i have a gridview.in the 2nd updatepanel i have got a modalpopup extender.My scenario is something like this----
In my gridview i have a disable button on the click of which rowcommand event is fired for gridview in this i am calling the modalpopup.show method of the modalpopup extender to show the popup panel.
alert("You have already Disabled the ad");
and in the rowcommand method i am calling the disable method which checks for the disable status by a viewstate key and then i am writing like this
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "message", "<script>StopDisable()</script>", true);