2012-10-25 35 views

回答

0

嘗試

ScriptManager.RegisterClientScriptBlock(
    Me, 
    GetType(Page), 
    "confirm ", 
    "{ if(confirm('Hello World')===false) { window.location = 'page.aspx' } }", 
    True 
); 
0

你試過嗎?

ScriptManager.RegisterClientScriptBlock(
    Me, 
    GetType(Page), 
    "confirm ", 
    "{ 
     var r = confirm('Hello World'); 
     if (r == true) 
     window.location = 'page.aspx'; 
     else 
     windo.location = THE_OTHER_PAGE; 
    }", 
    True 
); 
+0

非常感謝你完美的作品 – user1764540

+0

不客氣! – Rorchackh

相關問題