Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Internationalize Your ASP.NET Applications (Part 2 of 3) : Page 5

See how to use culture settings to localize images, database content, numbers, currencies, and dates in your ASP.NET applications.


advertisement
Another option that you can use in the web site to deal with localized images is create the images dynamically. When a client requests an image the code creates that image on the fly and sends it straight out to the site visitor. The sample site includes an example page called image.aspx that returns a GIF file containing the name and identifier for the current culture. When you open the page in a web browser, the culture in the image matches the culture you have chosen (see Figure 4). The page is a normal ASP.NET page, but rather than returning HTML to the browser, it returns a GIF file. Unlike the image examples you already saw, the application creates these images on-the-fly based on your CurrentCulture and CurrentUICulture settings.



Ollie Cornes has been working with the Internet and the Microsoft platform since the early 90's. His roles have included programming, technical authoring, writing, project management. He has co-written several .NET books for Wrox Press including "Beginning ASP.NET With C#" and "Professional C#" and has worked on Internet projects with Microsoft, Saab, Demon Internet (UK), Tesco (UK) and Vodafone. Ollie recently founded RichTextBox.com, which sells the formatted text editing control for ASP.NET. You can reach Ollie at ollie@cornes.org
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Thanks for your registration, follow us on our social networks to keep up-to-date