当前位置: 代码迷 >> ASP.NET >> Response.Write("<font color=red>" + "出错了!")用RegisterClientScriptBlock怎么写
  详细解决方案

Response.Write("<font color=red>" + "出错了!")用RegisterClientScriptBlock怎么写

热度:4710   发布时间:2013-02-25 00:00:00.0
Response.Write("<font color=red>" + "出错了!")用RegisterClientScriptBlock如何写?
我原来用Response.Write("<font color=red>" + "出错了!")能在页面中显示出信息,但是用ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "", "<font color=red>" + "出错了!", false);就不行了,请问大家,该用什么呢?

------解决方案--------------------------------------------------------
C# code
       ClientScript.RegisterClientScriptBlock(this.GetType(), "", "<script>document.write('<font color=red >' + '出错了!')</script>");
  相关解决方案