MCAD Developing and Implementing Web Applications with Visual C#. NET and Visual Studio. NET (Exam [... ]am 2)

The process of switching a user interface between a left-to-right language, such as German or English, and a right-to-left language, such as Hebrew or Arabic, is called mirroring .

The .NET Framework offers support for mirroring in Web forms through the HTML dir attribute, as shown in the following code sample:

<HTML dir="rtl">

Setting the HTML dir attribute (which can also be set on individual controls) handles most of the facets of the mirroring process automatically. Controls fill from right to left as you enter text, and the DropDownList , RadioButton , and CheckBox controls reverse their appearances .

If you want to mirror part of a form, you can set the dir property to rtl on individual controls instead of on the entire form.

Категории