Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying ASP.NET 3.5 Application Architecture and Design
  • Table Of Contents Toc
ASP.NET 3.5 Application Architecture and Design

ASP.NET 3.5 Application Architecture and Design

By : Vivek Thakur
4.4 (8)
close
close
ASP.NET 3.5 Application Architecture and Design

ASP.NET 3.5 Application Architecture and Design

4.4 (8)
By: Vivek Thakur

Overview of this book

Table of Contents (14 chapters)
close
close
ASP.NET 3.5
Credits
About the Author
About the Reviewers
Preface

Incorporating Globalization


In our sample website, after creating the resource files and creating some localized data, we first start using the explicit localization to set the text of the controls such as the Labels in our web site so that they get their values from the resource files. Because in our example there are four languages, let us create four resource files, along with a fifth fallback resource file (with no locale name). Here is a screenshot of these files:

Note that the resource files have the locale as their middle names, so we need to set the UICulture to the same named locale so that ASP.NET can access these resource files.

But the problem is, how do we change the culture dynamically on the postback event? Fortunately, ASP.NET provides a method in the Page class to override InitializeCulture(). This method executes very early in the page life cycle (much before any control is generated), and here we can set the UICulture and Culture of the current thread.

Because this method...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
ASP.NET 3.5 Application Architecture and Design
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon