2013-07-05 43 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