看板 C_Sharp 關於我們 聯絡資訊
※ 引述《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
askj:Thanks :) 09/01 17:13