Re: [問題] Response.Redirect 的問題

看板C_Sharp (C#)作者 (麵包小男孩)時間19年前 (2006/08/31 16:36), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《askj (WPW syndrome)》之銘言: : 請問在使用 Response.Redirect 的時候, : 怎麼下指令才能另開新的網頁呢? : if (xxxx) : { : Response.Redirect("Test.aspx", true/fasle); : } 可以用 Response.Write("<script>window.open(A,B);</script>"); A參數: 字串型態 目的地頁面 B參數: 字串型態 目標框架頁(Target) EX: Response.Write("<script>window.open('login.aspx','_parent');</script>"); 就是導向login.aspx頁面,在父系框架頁視窗開啟該也面 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.137.102.166

09/01 17:13, , 1F
Thanks :)
09/01 17:13, 1F
文章代碼(AID): #14zf-K8f (C_Sharp)
討論串 (同標題文章)
文章代碼(AID): #14zf-K8f (C_Sharp)