VisualBuilder
  Home > Aspnet > Tutorials > Internationalization - ASP.Net Security,Internationalisation and Deployment
Tell a friend
Link to us
Total Members
      Members: 84648
     
Sitemap Forum Chat
Home
ASP.Net Security,Internationalisation And Deployment Tutorial Home
1 . Introduction
2 . Relationship Between IIS and ASP.NET
3 . Authentication in ASP.Net
4 . Form Based Authentication
5 . Form Authentication Flow
6 . Passport Authentication
7 . Windows Authentication
8 . Configuring Windows Authentication
9 . Anonymous Authentication
10 . Basic Authentication
11 . Digest Authentication
12 . Integrated Windows Authentication
13 . Certificate Authentication
14 . Authorization
15 . Authentication Vs Authorization
16 . Impersonation
17 . Code Access security
18 . Internationalization
19 . Deployment
20 . Installing the Application
 
Aspnet Group Home
Aspnet Discussion (10)
Aspnet Members (2379)
Aspnet Resources
Aspnet Source Code (388)
Aspnet Articles (1)
Aspnet Blogs
Aspnet Jobs
Aspnet Components (201)
Aspnet Books
Aspnet Websites (21)
Aspnet News (105)
Aspnet Q & A (114)
- Aspnet Ask Question
- Aspnet Questions
- Aspnet Unanswered Questions
 
GROUPS
.NET
ASP.NET
.NET
C#
ASP
Visual Basic
Java
Java
JSP
EJB
Other
Delphi
C++
Ajax
UML
JavaScript
PHP
Web Design
Web Hosting
SQL Server
Oracle
Project Management
More Groups

 
LEARNING CENTER
TUTORIALS
.NET
.NET Tutorial
ASP Tutorial
ASP.NET Database Tutorial
ASP.NET Development Tips
ASP.Net Security,Internationalisation And Deployment
ASP.NET Server Controls Tips
ASP.NET Tutorial
C Sharp Tutorial
Web Development
Flex Tutorial
HTML Tutorial
Learn AJAX Tutorial
PHP Tutorial
Software Development
Database Tutorial
SQL Tutorial
UML Tutorial
Java
Ant Tutorial
EJB 3 Tutorial
Grails Tutorial
Hibernate Tutorial
Java 1.6 Tutorial
Java Tutorial
Java Web Component Tutorial
Java XML Tutorial
JDBC Tutorial
JDK1.5 Tutorial
JSF Tutorial
JSP And J2EE Design Tutorial
JSP Tutorial
Service-Oriented Architecture (SOA) Using Java Web Services Tutorial
Spring Tutorial
Struts Tutorial

RESOURCES
Q & A (436 )
Source Code (3275 )
Articles (11 )
Components (1589 )
News (888 )
Websites (1207 )

SUBMISSIONS
Submit Article
Submit Website
Submit News
Submit Source Code
Submit Component

COMMUNITY
Members Directory
Discussion Forum
Chat

SITE
About Us
Sitemap
Search
Contact Us
Link To Us
Feedback
Tell a Friend
Partners
Advertise


Aspnet security Tutorial
 Internationalization
  << Prev: Code Access security Next: Deployment >>

One of the principal advantages of hosting an application in a Web browser is that the potential audience for that application can be worldwide. Globalization is the process of designing an application so that it can adapt to different cultures. . Globalization is the process of designing and developing an application so that it supports user interfaces and regional data for users in target cultures.


 


ASP.NET internally uses Unicode. In addition, ASP.NET utilizes the String class of the .NET Framework class library and the related utility functions, which are also internally Unicode. When interfacing with the outside world, ASP.NET can be configured in several ways to use a defined encoding, which includes the encoding of .aspx files, request data, and response data. For example, it is possible to store .aspx files with Unicode encoding and convert the HTML output of a page to an ANSI code page like ISO-8859-1.


 


Properties of a locale are accessible through the CultureInfo class. Additionally, ASP.NET tracks two properties of a default culture per thread and request: CurrentCulture for the default of locale-dependent functions and CurrentUICulture for locale-specific lookup of resource data.
The following code displays the culture values on the Web server. Note that the CultureInfo class is fully qualified.

<%@Import Namespace="System.Globalization"%>
<%=CultureInfo.CurrentCulture.NativeName%>
<%=CultureInfo.CurrentUICulture.NativeName%>


The result is as follows:

English (United States)
English (United States)


For locale-dependent data like date/time formats or currency, ASP.NET leverages the support of the .NET Framework class library in the common language runtime. Code on ASP.NET pages can use locale-dependent formatting routines like DateTime.Format. For example, the following code displays the current date in a long format: the first line according to the system locale, the second one according to the German ("de") locale:

<%=DateTime.Now.ToString("f")%>
<%=DateTime.Now.ToString("f", new System.Globalization.CultureInfo("deDE"))%>

The result is as follows:

Thursday, February 28, 2008 6:16 AM
Donnerstag, 28. Februar 2008 06:16


 


When creating ASP.NET pages or code-behind modules, developers can use the .NET Framework class library to provide features necessary for a globalize environment or to localize the application. ASP.NET also provides configuration settings to ease development and administration of ASP.NET applications.

ASP.NET utilizes configuration files to provide directory settings that are usually also inherited by subdirectories. Each file can contain a Globalization section in which you can specify default encodings and cultures. Values are valid if they are accepted by the related classes Encoding and CultureInfo. You can find more information about the Encoding and CultureInfo classes in the .NET Framework SDK.

Within the Globalization section, the value of fileEncoding determines the way in which ASP.NET encodes .aspx files; the values of requestEncoding and responseEncoding
The attributes of the Globalization section in the Web.config file can also be specified on the Page directive (with the exception of fileEncoding, because it applies to the file itself). These settings are only valid for a specific page and override the settings of the Web.config file. The following sample directive specifies that the page should use French culture settings and UTF-8 encoding for the response:

determine the way in which request data and response data are encoded, respectively. <%@Page Culture="fr-FR" UICulture="fr-FR" ResponseEncoding="utf-8"%>


Within a page, the culture values can be changed programmatically by setting Thread.CurrentCulture and Thread.UICulture.

  << Prev: Code Access security Next: Deployment >>
Aspnet Security Tutorial Home
Give feedback and win a prize.

 
   Printer Friendly
   Email to a friend
   Add to my Favourites    
  Download PDF version
   Report Bad Submissions
   Submit Feedback
 
  Delicious   Digg   Technorati   Blink   Furl   Reddit   Newsvine   Google Click each image to add
this page to each site.
 
 
Welcome Guest Signup
MEMBER'S PANEL
EMAIL
PASSWORD
Forgot your password?
New User? Click Here!
 
Resend Activation Email!
 
SEARCH
 
 
LINKS
DSL, SDSL, ADSL
blackberry accessories
confrencing
Video Surveillance
Gift to Pakistan
 
ADVERTISEMENT
 
PARTNER LIST

More
 
 
 

Home | Login | About Us | Contact Us | Privacy Policy | Advertising