欢迎访问我的个人博客:三秋邦

要等彈出窗口顯示信息後,点击确定再跳轉到其他頁面

View Code
1 Response.Write("<script language=\"javascript\">alert('存檔成功!')</script>");
2
3 string strScript = "<script language=\"javascript\">window.location.href(\'tacr_upd.aspx?P_NO=" + log.P_NO + "&P_YEAR=" + log.P_YEAR + "\')</script>";
4 Response.Write(strScript);

 

點擊確定後再跳到“tacr_upd.aspx?P_NO=12&P_YEAR=2009 ”這個頁面上去,重點是記得用window.location.href()這個方法。

 

posted @ 2012-01-03 16:18  追夢  阅读(454)  评论(0编辑  收藏  举报
欢迎访问我的个人博客:三秋邦