Apr 17 2006

ASP.NET 2.0 Localize Control

Category: ASP.NET 2.0 - GeneralBil@l @ 08:26

In my research on Localization in ASP.NET 2.0, which is my topic of the next Community Night Session at Microsoft Office in Beirut, I passed by the <asp:Localize> control in ASP.NET 2.0.

This control inherits from the Literal Control. It is mainly used to display static text on a web page that is to be localized.

You might say, a Literal or Label can do the job for me, that is true. BUT, both a Label and Literal control, don't have design view editing. So, using the Localize, you can write down the text on the spot through the design view of the page.

You can also, put some text into the Localize control programmatically same as you do with the Label and Literal Control.

However, styling of text is not allowed in a Localize control, as in the Label control. However, you can always hug the Localize control with a CSS class for formatting issues ;)

Hope this helps you,



Comments are closed