Get the App
SLTechnology News&Howtos  ›  Development  › 

How to filter useless spaces in ASP.NET output HTML

Shulou Source: shulou.com Published: 2022-06-01 05:40:07 10月28日 Update

This article "how to filter ASP.NET output HTML useless spaces" article knowledge point most people do not understand, so Xiaobian to you summarized the following content, detailed content, clear steps, with a certain reference value, I hope you can read this article to gain, let's take a look at this article "how to filter ASP.NET output HTML useless spaces" article bar.

The code is as follows:

1publicclassFilterHtmlTextWriter:HtmlTextWriter

2{

3publicFilterHtmlTextWriter(TextWriterwriter,stringtabString)

4:base(writer,tabString)

5{

6}

7

8publicnewintIndent

9{

10get{return0;}//always returns 0

11set{base.Indent=0;}//always set to 0

12}

13}

The above is about "how to filter ASP.NET output HTML useless spaces" the content of this article, I believe we all have a certain understanding, I hope the content shared by Xiaobian is helpful to everyone, if you want to know more related knowledge content, please pay attention to the industry information channel.

Tags: Content spaces output articles knowledge articles code value most that is more steps knowledge points industry information information channels channels help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn Shulou Information Shulou Technology Docker