| Welcome to Webforumz.com. |
|
Jan 18th, 2008, 15:34
|
#1 (permalink)
|
|
New Member
Join Date: Jan 2008
Location: maine
Posts: 2
|
Asp code in XHTML displays English, then switches to a different language
Hello, I have the following asp code inserted in an XHTML file:
- Code: Select all
<%Response.Write(FormatDateTime(Date, 1)) %>
It works fine for a few minutes, & displays the date in English, but then after visiting other pages on the site, it changes to a different language. Activity seems to cause it to occur, as I stayed on the index.asp for a few hours & it stayed English. Then after a few moments of visiting other pages it switched again. Once it switches, all pages with the same code display it in that language, even ones that moments earlier displayed it in English. It happens in both IE & FireFox. The pages are coded with XHTML 1, & given an asp extension.
This is the doctype & language info:
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "(URL address blocked: See forum rules)">
<html xmlns="(URL address blocked: See forum rules)" xml:lang="en" lang="en">
Thanks,
Mark
|
|
|
Jan 19th, 2008, 05:15
|
#2 (permalink)
|
Join Date: Mar 2007
Location: USA
Posts: 457
|
Re: Asp code in XHTML displays English, then switches to a different language
ASP is a server side language and won't have anything to do with your browser. The date it gets back is the date from the server so you might want to check to ensure your server is located in an English country. I've seen a lot of servers being hosted in India lately, and not that I have anything against India, but That's a LONG way to go to get things sent back to me.
__________________
My Website www.justudios.com is here!
Availability: YES | NO
ASP | PHP |Flash | Design | Contract Work
|
|
|
Jan 19th, 2008, 12:50
|
#3 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: Asp code in XHTML displays English, then switches to a different language
The Doctype won't affect the language at all but I can see "Blocked see forum rules".
I assume you are using forum software? If so which?
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Jan 19th, 2008, 21:49
|
#4 (permalink)
|
|
New Member
Join Date: Jan 2008
Location: maine
Posts: 2
|
Re: Asp code in XHTML displays English, then switches to a different language
Thanks for the reply Justin,
I’ll check that out. I wanted to make sure there wasn’t either an additional file which had to be uploaded to the webserver which identified asp files as English, or a piece of code to do the same which could have been added to the date expression itself.
Thanks,
Mark
|
|
|
Jan 21st, 2008, 00:11
|
#5 (permalink)
|
|
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
|
Re: Asp code in XHTML displays English, then switches to a different language
Try putting this code on top of your page!
This will print your date in british format
- HTML: Select all
<% Session.LCID=2057 %>
[ ASP Session LCID]
__________________
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|