473,383 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Set Locale

We have a classic ASP site running on IIS 5. We will be using a com
component to handle session state so we can share state between .net and
classic. This means switching the IIS session state off. Prior to this
locale was set in the session. Switching the session off means the dates
start displaying in a US format, not British. Is there any way of setting
the Locale as UK easily. As it is IIS 5 we can't use response.lcid, I don't
want to mess around with regional settings on the machine as our
applications aren't very well designed :) and I will get the blame for
breaking them. I don't want to put a page directive in over 1000 asp page.
Is there anyway of setting it at an application level in IIS. Regards,
Chris.
Mar 17 '07 #1
2 5738
Chris wrote on 17 mrt 2007 in microsoft.public.inetserver.asp.general:
We have a classic ASP site running on IIS 5. We will be using a com
component to handle session state so we can share state between .net
and classic. This means switching the IIS session state off. Prior to
this locale was set in the session. Switching the session off means
the dates start displaying in a US format, not British. Is there any
way of setting the Locale as UK easily. As it is IIS 5 we can't use
response.lcid, I don't want to mess around with regional settings on
the machine as our applications aren't very well designed :) and I
will get the blame for breaking them. I don't want to put a page
directive in over 1000 asp page. Is there anyway of setting it at an
application level in IIS. Regards,
The Q how to set the IIS is not really OT but OT on this NG,
as there seems to be an IIS NG somewhere,
and I don't believe you can do this without session in ASP.
However:

This shows how important, for a programmer,
it is to build your own date formats,
always!

[vbs]
function myDateTimeFormat(nu)
myDateTimeFormat =_
day(nu) & "/" & month(nu) & "/" & year(nu) & " " &_
right("0"&hour(nu),2) & ":" & right("0"&minute(nu),2) &_
":" & right("0"&second(nu),2)
end function

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 17 '07 #2

"Chris" <no****@nospam.comwrote in message
news:eI**************@TK2MSFTNGP06.phx.gbl...
We have a classic ASP site running on IIS 5. We will be using a com
component to handle session state so we can share state between .net and
classic. This means switching the IIS session state off. Prior to this
locale was set in the session. Switching the session off means the dates
start displaying in a US format, not British. Is there any way of setting
the Locale as UK easily. As it is IIS 5 we can't use response.lcid, I
don't
want to mess around with regional settings on the machine as our
applications aren't very well designed :) and I will get the blame for
breaking them.
You think your not already running that risk by replacing the session object
with your own implementation?

What's wrong with putting the regional settings to their correct values?

With such a significant modification one would expect that you would do some
significant testing anyway.
>I don't want to put a page directive in over 1000 asp page.
Is there anyway of setting it at an application level in IIS. Regards,
Chris.
I suspect what you will need is to correct the Regional settings of the
DEFAULT user.
Mar 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ksenia Marasanova | last post by:
Hi, I have some problems with locale module. On my workstation, changing locale doesn't have effect: Python 2.3 (#1, Sep 13 2003, 00:49:11) on darwin Type "help", "copyright", "credits" or...
2
by: Jorgen Grahn | last post by:
I'm sitting here with a Debian Linux 'Woody' system with the default Python 2.2 installation, and I want the re module to understand that re.compile(r'\W+'. re.LOCALE) doesn't match my national,...
1
by: Cagdas Ozgenc | last post by:
Greetings. I am confused about C++ standard library locale stuff. It seems as if the implementations of locales are not part of the library, but only some guideline classes are there. What is...
0
by: | last post by:
Hi all, running the following code as an console application: #include <locale> #include <iostream> #include <sstream> #include <tchar.h> using namespace std;
3
by: robert | last post by:
Why can the default locale not be set by its true name? but only by '' ? : PythonWin 2.5 (r25:51908, Sep 19 2006, 09:52:17) on win32. (None, None) Traceback (most recent call last): File...
2
by: cris | last post by:
Hi, I got trouble when I try to change the locale used in a program foo.cc // ----------------- begin #include <iostream> #include <locale> #include <exception> using namespace std; int...
2
by: Daniele C. | last post by:
I will report a snippet from http://php.net/setlocale I spent about 2 seconds before thinking: can it really be? I mean, is there no way to set locale info per thread? And after a brief web...
24
by: Donn Ingle | last post by:
Hello, I hope someone can illuminate this situation for me. Here's the nutshell: 1. On start I call locale.setlocale(locale.LC_ALL,''), the getlocale. 2. If this returns "C" or anything...
0
by: Roman Bertle | last post by:
Hello, I try to format monetary values using the locale module, python2.5: Python 2.5.2a0 (r251:54863, Jan 3 2008, 17:59:56) on linux2 Type "help", "copyright", "credits" or "license" for...
3
by: Mario Ruggier | last post by:
Hi, i had the following problem when installing py3.0rc1 on a Mac OS X 10.5.5. On this system, the default locale values are: $ locale LANG= LC_COLLATE="C" LC_CTYPE="UTF-8" LC_MESSAGES="C"
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.