When should I use a Localize control instead of a Literal?

前端 未结 2 2069
隐瞒了意图╮
隐瞒了意图╮ 2021-02-12 06:09

I recently became aware of the System.Web.UI.WebControls.Localize control in a lab for the ASP.NET 4.0 MCTS certification course. The purpose of this control is unclear to me.

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-12 06:37

    This described it best:

    The Localize Control lets you localize any element on an .aspx page. It provides a design time feature not offered by its base class, the Literal control; in particular, the Localize control provides design time editing of static content so you can see a default value while working in page design mode.

    Found at: http://wiki.asp.net/page.aspx/357/localize/

    MSDN (bottom section has a good description)

提交回复
热议问题