摘要:
在程序中经常会使用到弹窗:Response.Write("");但是点击确定按钮后导致前台样式乱掉,在这里记录下解决方法。解决方法一:加上一句解析格式的语句:Response.Write("");解决方法二:使用微软已封装好的方法代替Response.Write:ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "");ps:方法二还可以用于控制.aspx页面的js方法。例如在.aspx页面中有方法function aler
阅读全文
posted @ 2013-09-06 11:41
Sophie Huang
阅读(426)
推荐(0)
编辑