asp.net 中文字控制的模式 属性

Mode property of Literal control in asp.net

这可能与这个问题有关: What's the Literal control used for and what's the difference to the Label Control in asp.net?

文字控件也有三个MODE属性值: 直通、编码、转换。

前两个是可以理解的,但是第三个值是什么:Transform signify?此处对文本应用了何种转换?

如果您对 .NET 中内置的内容有疑问,可以去 MSDN 查看。这是 Mode property.

的相关文档

这是关于转换的内容。

Unsupported markup-language elements are removed from the contents of the control. If the Literal control is rendered on a browser that supports HTML or XHTML, the control's contents are not modified.

还有

If you specify Transform, the rendering behavior of the Text property depends on the type of markup being rendered. When the Literal control is rendered for a device or browser that supports HTML or XHTML, specifying Transform produces the same behavior as specifying PassThrough. All markup tags and elements for the Text property are rendered for the requesting browser.