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()這個方法。