How can I remove white-spaces from ASP.NET MVC# output?

后端 未结 4 1895
自闭症患者
自闭症患者 2021-01-31 23:00

How can I remove all white-spaces from ASP.NET MVC 3 output?


UPDATE: I know how can I use string.Replace method or Regular Expressions to remove w

4条回答
  •  -上瘾入骨i
    2021-01-31 23:58

    one way you can, is that create a custom view page's inheritance; in that, override Write() methods (3 methods will be founded), and in these methods, cast objects to strings, remove white-spaces, and finally call the base.Write();

提交回复
热议问题