2013-07-05 87 views
0

我使用下面的C#創建一個彈出錯誤信息時,數據不完全輸入並按下按鈕:彈出消息打破CSS

Page.ClientScript.RegisterStartupScript(typeof(Page), Guid.NewGuid().ToString(), "alert('Error Message')", true); 

彈出工作,但是,它似乎打破了頁面的CSS。

前: enter image description here

後:

enter image description here

我該如何解決這個問題?

回答

0

只需在javascript而不是ASP.net按鈕

+0

這兩個工作要好得多 – 2013-07-05 13:48:38