文字控制模式之间的差异 [英] Difference between modes of literal control

查看:160
本文介绍了文字控制模式之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

你能张贴的例子,太多?

Could you post an example, too?

推荐答案

有不同的文字模式 Literal.Mode

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

和一起来看看这个实现的例子 <一href="https://web.archive.org/web/1/http://blogs.techrepublic%2ecom%2ecom/programming-and-development/?p=618"相对=nofollow>使用ASP.NET的立即控制,充分发挥其潜力

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

这篇关于文字控制模式之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆