Response.Write("<font color=red>" + "出错了!")用RegisterCl

Response.Write(font colorred + 出错了!)用RegisterClientScriptBlock如何写?我原来用Response.Wr

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>");