asp.net 如何弹出警告而不刷新页面....
如题...
asp。net的弹出警告窗口 /// ///提供一个可选“是”“否”的弹出窗口,若选是,则跳到url1,选择否跳到url2 /// /// ///是 ///否 public static void confirm(string strMsg,string url1,string url2) { Page page = HttpContext。
Current。Handler as Page; page。ClientScript。RegisterStartupScript(page。GetType(),"message","var result = window。confirm('" + strMsg +"'); if(result) { window。
location='" + url1 +"' }else { window。location='" + url2 +"' };",true); return; } 。
用显示和隐藏来做
答:详情>>