Web Design and Development Forums

Asp code in XHTML displays English, then switches to a different language

This is a discussion on "Asp code in XHTML displays English, then switches to a different language" within the ASP Forum section. This forum, and the thread "Asp code in XHTML displays English, then switches to a different language are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > ASP Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old 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
mboston72 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 19th, 2008, 05:15   #2 (permalink)
 
JustinStudios's Avatar
 
Join Date: Mar 2007
Location: USA
Posts: 457
Blog Entries: 3
Send a message via MSN to JustinStudios
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
JustinStudios is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 19th, 2008, 12:50   #3 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
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.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old 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
mboston72 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 21st, 2008, 00:11   #5 (permalink)
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
Blog Entries: 2
Send a message via Yahoo to Monie
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]
__________________

Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Displays wrong in Firefox JustinStudios CSS Forum 7 Jun 28th, 2007 19:56
Displays wrongly in Firefox? spon HTML Forum 5 Feb 15th, 2007 17:19
X/HTML 5 Versus XHTML 2: Competition To Become The Next Markup Language Vlad Alexander Webforumz Cafe 5 Feb 5th, 2007 21:48
css displays wrong font from local file ruddles CSS Forum 2 Jun 5th, 2005 12:48
Drop-Down Menu Displays Image WiseWizards JavaScript Forum 3 Jun 4th, 2005 17:54



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 20:14.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59