Wednesday, February 22, 2006

steps to localize application

1. Create localization resource files
hlpstring.txt hlpstring.zh-CN.txt hlpstring.zh-TW.txt
file contains key/value text like:
strName=Please input your Name
strBirth =Please enter your Birthdate
or
strName=请输入姓名
strBirth=请输入生日

2. Compile resouce file
resgen hlpstring.txt

3. Start Coding
imports system.Globalization
imports system.Resources

'Create culture
dim cult as new CultureInfo("zh-CN")
dim rm as new ResourceManager.CreateFileB asedResourceManager("hlpstring",, nothing)

lblName.text=rm.getString("strName",cult)
lblBirth.text=rm.getString("strBirth",cult)
................

Monday, February 13, 2006

change visited link color

<style type="text/css">

a:link{color:blue}

a:visited { color:blue}

</style>

 

Wednesday, February 01, 2006

Client side code-- a headache

I'm working on ASP.NET web application recently. I found it's hard for me once I need to write client side code.
I have no idea what function and method I can use. All  methods I know are  window.alert/confirm/open.
Sometimes for only one line of code, I need to do a lot search and read a lot documents to get want I want.
It's just not fun!!!

Blog Archive