当前位置:编程学习 > C#/ASP.NET >>

页面回传后定义的样式消失- .NET技术 如何解决

客户端单击按钮页面回传后定义的样式失效,页面乱七八槽的 --------------------编程问答-------------------- 不太清楚,你的具体情况,但是以前遇到过,也就是“this”,“this.Page”的问题 --------------------编程问答-------------------- 是否使用了response.write
使用ClientScript.RegisterStartupScript(this.GetType(), "", ""); --------------------编程问答-------------------- 错乱的网页的源码发过来看看. --------------------编程问答--------------------
引用 2 楼 wuyq11 的回复:
是否使用了response.write
使用ClientScript.RegisterStartupScript(this.GetType(), "", "");


自己检查,response.write方法会导致页面样式丢失。 --------------------编程问答--------------------
引用 2 楼 wuyq11 的回复:
是否使用了response.write
使用ClientScript.RegisterStartupScript(this.GetType(), "", "");


应该就是这个原因!LZ请仔细检查! --------------------编程问答--------------------
引用 2 楼 wuyq11 的回复:
是否使用了response.write
使用ClientScript.RegisterStartupScript(this.GetType(), "", "");
 应该是这个问题 --------------------编程问答-------------------- response.write方法会导致页面样式丢失。

仔细找找吧
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,