Global web applications1 Adapting ASP.NET web applications to work in different cultures.

Slides:



Advertisements
Similar presentations
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Advertisements

Project 1 Introduction to HTML.
Web-Based Applications
Chapter 1: An Introduction To ASP.NET Web Programming
1 Software Testing and Quality Assurance Lecture 32 – SWE 205 Course Objective: Basics of Programming Languages & Software Construction Techniques.
Creating your website Using Plain HTML. What is HTML? ► Web pages are authored in HyperText Markup Language (HTML) ► Plain text is marked up with tags,
Technion – Israel Institute of Technology Department of Electrical Engineering Software Lab Remote Mailbox based on.NET technology Michael and Eugene Shamis.
Client, Server, HTTP, IP Address, Domain Name. Client-Server Model Client Bob Yahoo Server yahoo.com/finance.html A text file named finance.html.
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Linux Operations and Administration
Internet. Internet is Is a Global network Computers connected together all over that world. Grew out of American military.
CSCI 323 – Web Development Chapter 1 - Setting the Scene We’re going to move through the first few chapters pretty quick since they are a review for most.
Computer Concepts 2014 Chapter 7 The Web and .
Web Site Navigation How to get around in an ASP.NET web application 1Web Site Navigation.
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
JavaScript & jQuery the missing manual Chapter 11
PC Maintenance: Preparing for A+ Certification Chapter 25: The Internet.
HTML, GUI, ASP.NET Rina Zviel-Girshin Lecture 2
ASP.NET AJAX 1. Ordinary web applications vs. AJAX Ordinary web application The full page is updated at each request The page is not available while being.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
OV Copyright © 1998 Ziff-Davis Education, a division of Ziff-Davis Inc. All rights reserved. The Internet World-wide network of computers connected.
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Managing State.
1 Session 1: Introduction to HTML Spring Today’s Agenda Cover useful terminology for today’s session HTML, browsers, servers, etc. HTML Tags Get.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
OBJECTIVES  What is HTML  What tools are needed  Creating a Web drive on campus (done only once)  HTML file layout  Some HTML tags  Creating and.
Microsoft ASP.net Session Samar Samy Microsoft Student Partner.
Tutorial 1: Browser Basics.
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
CHAPTER 9 Using the World Wide Web. OBJECTIVES 1.Describe the Internet and the World Wide Web 2.Define related Internet terms 3.Explain the components.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Objective Understand concepts used to web-based digital media. Course Weight : 5%
Tracing 1www.tech.findforinfo.com. Contents Why Tracing Why Tracing Tracing in ASP.NET Tracing in ASP.NET Page Level tracing Page Level tracing Application.
What does WWW stand for? And following abbreviations? HTTP: Hyper Text Transfer Protocol HTML: Hyper Text Mark-up Language URL: Uniform Resource Locator.
10 – 12 APRIL 2005 Riyadh, Saudi Arabia. Building multi-lingual ASP.Net application that handle western languages and Arabic with a single code base.
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
Global.asax file. Agenda What is Global.asax file How to add the Global.asax file What are the default events available Explanation to Application_Level.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Using the Internet. (WWW) and the Internet The World Wide Web (WWW) is a small part of the Internet. The Internet relates to all the hardware and software.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 1 Key Concepts 1.
Session 4: HTML and Web Server Controls. Outline Creating Web Forms Using Server Controls HTML Server Controls Web Server Controls Writing ASP Code Inline.
Introduction to Web Services. Examples Using a Web Service Creating a new Web Service.
Living Online Lesson 3 Using the Internet IC3 Basics Internet and Computing Core Certification Ambrose, Bergerud, Buscge, Morrison, Wells-Pusins.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
Overview of Previous Lesson(s) Over View  ASP is a technology that enables scripts in web pages to be executed by an Internet server.  ASP.NET is a.
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
1111 Creating HTML Programatically Objectives You will be able to Invoke C# code on the server from an ASP.NET page. Write C# code to create HTML.
Session 1: Introduction to HTML Fall Today’s Agenda Talk about the functions of the Internet Cover useful terminology for today’s session HTML,
Internet addresses By Toni Grey & Rashida Swan HTTP Stands for HyperText Transfer Protocol Is the underlying stateless protocol used by the World Wide.
11 User Controls Beginning ASP.NET in C# and VB Chapter 8.
Creating a Web Site Creating a new Web site Defining and using folders Creating and editing Web pages Viewing pages in a Web browser.
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
Website Design and Construction Services and Standards.
Sitecore Basic Training Content Management System (CMS) University Communications Web Services
11 SUPPORTING INTERNET EXPLORER IN WINDOWS XP Chapter 11.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
Tutorial 1 Getting Started with Adobe Dreamweaver CS5.
Working in a Mobile App Development Environment Lesson 2.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Chapter 10: Web Basics.
Some bits on how it works
Some Common Terms The Internet is a network of computers spanning the globe. It is also called the World Wide Web. World Wide Web It is a collection of.
Client side & Server side scripting
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
Web Page Design CIS 300.
C# and ASP.NET Programming
Presentation transcript:

Global web applications1 Adapting ASP.NET web applications to work in different cultures

Global web applications2 Internationalization, Localization, and Globalization It’s all about adapting software to different cultures –Languages, dates, etc. Internationalization –Designing (or refactoring) software to be adapted to various cultures without changes Localization –Adapting internationalized software to specific cultures Globalization = Internationalization + Localization References – –

Global web applications3 HTTP support for languages HTTP supports user requested languages –HTTP header Content-Language (optional) –RFC 1945: Hypertext Transfer Protocol HTTP/1.0, section “D.2.5 Content-Language” –ASP.NET syntax Request.Headers.Get("Accept-Language") –Syntax: language_COUNTRY en_US –English in USA en_CA –English in Canada fr_CA –French in Canada da_DK –Danish in Denmark

Global web applications4 Browser support Browsers can be configured to send specific Content- Language request headers –A prioritized list of … Internet Explorer –Functions → Internet options → General → Languages –You the choose and rank your preferred languages See screen shot Mozilla Firefox –Functions → Options … → Content → Language

Global web applications5 Culture aware controls Some ASP.NET controls are culture and language aware –Calendar Page must be –

Translating values Global web applications6 Now 10/4/2010 8:40:33 AM Favorite number 145,933, Price $ protected void Page_Load(object sender, EventArgs e) { DateTime now = DateTime.Now; Response.Write("Now " + now.ToString()); Response.Write(" "); int favoriteNumber = ; Response.Write("Favorite number " + favoriteNumber.ToString("n")); Response.Write(" "); double price = ; Response.Write("Price " + price.ToString("c")); } Now :42:46 Favorite number ,00 Price kr. 145,23

Global web applications7 How to internationalize texts 1.Make a working web site in some language 2.Make sure all texts, etc. are in 3.Make sure all elements have good ID’s –ID’s will be used as the key in the localization database 4.If you have texts set in C# (error messages for example) –Temporarily copy the texts to the.aspx file 5.Internationalize + Generate the default locale –Visual Studio: Design mode: Tools -> Generate Local Resource Editor must be in “Design Mode” –No such help in Visual Web Developer  6.Try the web site 7.Delete the temporary texts from the.aspx file

How to localize texts 1.Copy the file default.aspx.resx to localize another culture, like default.aspx.da.resx –Danish language + culture: da 2.Rewrite all the texts in the copy 3.Try the web site with a browser configured to request the Danish language version 4.Texts set in code-behind (C#) –LabelDuplicateMessage.Text = GetLocalResourceObject( "LabelDuplicateMessageResource1.Text "). ToString() Global web applications8

References Bill Evjen Professional ASP.NET 4 in C# and VB, Wrox 2010 –Chapter 32: Building Global Applications, page ASP.NET Globalization and Localization – us/library/c6zyy3s9.aspxhttp://msdn.microsoft.com/en- us/library/c6zyy3s9.aspx Microsoft.NET – Internationalization – us/goglobal/bb aspxhttp://msdn.microsoft.com/en- us/goglobal/bb aspx Global web applications9