用response.write()方法填充html流结果显示成文本来了。。请问什么原因aps.nethtmlresponse.write

解决方案 »

  1.   

    response.write(httputility.htmldecode(文本))
      

  2.   

     string text = "...";//这里你的大段的文本txt
                string newText = HttpUtility.HtmlDecode(text);//把这个newText刷到页面上
      

  3.   

    结贴了。。版主的方法我好像试过了。没解决不过我找到为什么保存的代码为什么是这样了。。就是保存html代码时,不用表单提交的形式提交直接用服务器控件的形式保存就不会这样了。。thanks