TAILIEUCHUNG - Professional ASP.NET 3.5 in C# and Visual Basic Part 144

Professional in C# and Visual Basic Part 144. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 30 Localization Figure 30-8 When working with currencies note that when you are using currencies on an page you have provided an automatic culture setting for the page as a whole such as setting the culture in the @Page directive . You must specify a specific culture for the currency that is the same in all cases unless you are actually doing a currency conversion. For instance if you are specifying a . Dollar currency value on your page you do not want to specify that the culture of the currency is something else for example the Euro . An exception would be if you actually performed a currency conversion and showed the appropriate Euro value along with the culture specification of the currency. Therefore if you are using an automatic culture setting on your page and you are not converting the currency you perform something similar to what is illustrated in Listing 30-11 for currency values. Listing 30-11 Reverting to a specific culture when displaying currencies VB Dim myNumber As Double Dim usCurr As Cultureinfo New CultureInfo en-US c usCurr C double myNumber Cultureinfo usCurr new Cultureinfo en-US c usCurr UnderstandingDifferences in Sorting Strings You have learned to translate textual values and alter the construction of the numbers date time values currencies and more when you are globalizing an application. You should also take note when applying culture settings to some of the programmatic behaviors that you establish for values in your applications. One operation that can change based upon the culture setting applied is how .NET sorts strings. You might think that all cultures sort strings in the same way and generally they do but sometimes differences exist in how sorting occurs. To give you an example Listing 30-12 shows you a sorting operation occurring in the en-US culture. 1394 Chapter 30 Localization Listing 30-12 Working with

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.