把GridView控件完全放入UpdatePanel中时,实现了点击编辑、更新等按钮时,页面不再刷新,对话框不起作用
输出语句改成 :
ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.CurrentHandler, typeof(System.Web.UI.Page),"ShowMessage", "alert('" + 要输出的话 + "');", true);就ok了
把GridView控件完全放入UpdatePanel中时,实现了点击编辑、更新等按钮时,页面不再刷新,对话框不起作用
输出语句改成 :
ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.CurrentHandler, typeof(System.Web.UI.Page),"ShowMessage", "alert('" + 要输出的话 + "');", true);就ok了
转载于:https://www.cnblogs.com/loveAnimal/archive/2012/07/04/2576008.html