//This code will print the as per the request.
Response.Write("<<<<<<<=======>>>>>>>>>>");
//In this case its not writing as per the request.
Response.Write("<<<<<<<hello======>>>>>>>>>>");
Run Code Online (Sandbox Code Playgroud)
在这种情况下,它只打印<<<<<< >>>>>>>>>.表示删除所有文本,关联所有=符号.
这是什么问题?我只是写文字.但没有得到.
谁知道这个......帮助我?
我相信<hello被视为标签.我建议使用
Response.Write(HttpUtility.HtmlEncode("<<<<<<<hello======>>>>>>>>>>"));
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
95 次 |
| 最近记录: |