文字控制模式之间的差异差异、文字、模式

由网友(灵魂操控者ゝ)分享简介:什么是直通的区别和变换文字控制模式?What is the difference between the passthrough and Transform modes of literal control?你能张贴的例子,太多?Could you post an example, too?推荐答案有不同的文...

什么是直通的区别和变换文字控制模式?

What is the difference between the passthrough and Transform modes of literal control?

你能张贴的例子,太多?

Could you post an example, too?

推荐答案

有不同的文字模式 Literal.Mode

直通:控件的内容不会被修改 恩code:控件的内容转换为HTML-CN codeD字符串 转换:不支持的标记语言的元素从控制的内容删除。如果文字控制在支持HTML或XHTML浏览器中呈现,该控件的内容不会被修改。 PassThrough : The contents of the control are not modified. Encode : The contents of the control are converted to an HTML-encoded string. Transform : 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.

有一个看看这个MSDN文章的http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.literal.mode.aspx

Have a look at this MSDN article http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.literal.mode.aspx

和一起来看看这个实现的例子 使用ASP.NET的立即控制,充分发挥其潜力

and take a look at this implemented example Use ASP.NET's Literal control to its full potential

阅读全文

相关推荐

最新文章