Session.LCID Does Not Work

The problem is, even when i set the LCID property at the
beginning of my code, it always returns the date in
brazilian date format. Example:

<% @Language=VBSCript %>
<% Session.LCID=1033 %>
<% Response.write (now & "<BR>" & Session.LCID) %>

This code should return:
MM/DD/YYYY HH:MM AM or PM
1033

But it´s returning:
DD/MM/YYYY HH:MM
1033

Do you see? The LCID is correct but it keeps showing the
date in brazilian format? What the hell is happenning?

View Replies


ADVERTISEMENT

Session.Lcid

Trying to locate the list of valid lcid's on MS's site and googled.
Ive toiled long and hard, but alas I cannot locate the information.
(previous links moved)

Could anyone point me in the direction of a list of countries and their
associated lcid

View Replies View Related

Session.LCID

We are translating our web shop to Slovak but when I use Session.LCID=1051
for slovak do I get the error "Invalid LCID". The same shope use Swedish =
1053, Norwegian(Bokmal) = 1044, English = 1033 and no problems.
What do I have to do in order to get Slovak to work on the same server?

View Replies View Related

Session.LCID

I recently downloaded a calendar that i am trying out for a client. It works fine when i test it on my machine..however when i test it on the hosts server it can't handle the date format. when i run it i get the following error.

Error:

Type mismatch: 'DateValue'

/calendar/inc_default.asp, line 77

Code: .....

View Replies View Related

Session.Lcid

I've recently installed a calendar that I downloaded but I'm having a bit of a problem with the date settings. I thought setting the LCID value would help which it does but brings another problem.

The site is being hosted on a server in Germany, and when I enter the LCID value for Germany it works but also changes the days and months to German. Any way to change that to English? I tried using the LCID values for US or UK but it just does not work....probably something to do with the German format of dd.mm.yyyy .

View Replies View Related

Session.Lcid Issue

I've recently installed a calendar that I downloaded but I'm having a bit of
a problem with the date settings. I thought setting the LCID value would
help which it does but brings another problem. The site is being hosted on a
server in Germany, and when I enter the LCID value for Germany it works but
also changes the days and months to German. Any way to change that to
English? I tried using the LCID values for US or UK but it just does not
work....probably something to do with the German format of dd.mm.yyyy

View Replies View Related

Changing Session.LCID In A Hyperlink

Is it possible to change the Session.LCID in a hyperlink? My problem is I'm calling a Date from a database to use as a querystring in the hyperlink but I also need to display the date as output from the hyperlink.

I need to have to querystring in Session.LCID = 1033 and the display date in
Session.LCID = 2057. Code:

View Replies View Related

Disable Cookie And Session Will Work?

I want to know if user disable cookie, will the session still working? Actually I remember we could disable cookie in IE before (not sure what version, but I couldn't see
the option anymore. Now I am using IE6.

View Replies View Related

Session Timeout Doesn't Work

I have just inherited a system which I have to maintain so if I'm missing something obvious here then go easy. The problem is my sessions won't timeout with any reliability. Sometimes they do and sometimes they don't. There doesn't appear to be any consistency to it.

In my global.asa file:

Code:
Sub Session_OnStart
session("logged_in") = "FALSE"
session("whereTo") = 0
session("user_project") = ""
session("client_id") = ""
Session.Timeout = 20
End Sub
Are sessions just unreliable by their nature or am I missing something?

View Replies View Related

Using LCID

Is there anyway of using the Session.LCID to format a date for the user?For example, users in the UK get date format dd/mm/yyyy and US users get mm/dd/yyyy from the LCID object.

View Replies View Related

LCID

When using Session.LCID to set different locales for different users using a webapp, is it possible to change those locale specific settings somehow? Let's say some picky user doesn't like a date format with leading zero's, and this happens to be the default for his locale.

is there a way to change this setting for this locale (using Regional settings in the control panel?) or is this simply impossible.

View Replies View Related

LCID Or Country

Does anybody know how to determine a user's country or LCID in an asp page?

I've found some articles on using:
Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")

but somehow this doesn't seem like a foolproof method to me.

View Replies View Related

LCID For Euro

What's the LCID value for Euro ?

View Replies View Related

LCID Difference &H0413 And 1043 Format?

I've currently got all documents with an Session.LCID setting right on top of the page and it's got the value &H0413. On rare occasions (as today) it gives me the guilder currency instead of the euro currency (we used to have guilder before euro).

The regional settings at the server are set to use the Euro sign and the ASP documents got the &H0413. What's causing the hick-up that I all of a sudden now get the "fl." guilder-sign instead of the "€" euro sign?

Is there a difference between these notations:

&H0413 and 1043

I found both for Dutch language. It's not good since our company cannot print documents now coz the sign is wrong.

View Replies View Related

Asp Does Not Work

i use a IIS 5.1 with win XP with the newest updates etc.
its possible to start aspx and html files but not asp files
what could it be ? what can i check ?

View Replies View Related

Can It Work Like A CGI?

Can a ASP work like a CGI.(Email Scripts) ? Can a ASP script for email will work, if a Script is on 1 server and form(html.form) is on another server and a thank you page is on 3rd server. Like if u don't know about a CGI there are many websites who give you permission to use their script by editing little bit in yours form and place them on yours server website, there are number of site.

And 1 more thing I want to ask is if some one use a windows server he have a form html on that server, can he run asp script which is on Linux server to get form result on his desired email id.

View Replies View Related

OnAfterPrint Cannot Work

cannot using onAfterPrint in IE 6.0, the page can print but cannot close.
Why??

my code like as below

<body
:
<script language="javascript" type="text/javascript">
<!--
window.print();
//-->
</script>
</body>

View Replies View Related

I Cannot Get This Inner Join To Work In Asp

<!--#Include Virtual="/bug/adovbs.inc"-->

<title>Bug Status Board</title>

<%
Dim conn
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=SQLOLEDB; Data Source = (local); Initial Catalog =
techsupportBT; User Id = sa; Password="
Set rs = server.CreateObject("ADODB.Recordset")
sSQL="SELECT T.BugIndex, T.[Date Entered], T.DESCRIPTION,"
sSQL= ssql &" T.Company, T.Technician, T.Developer, T.PROGRAM, "
sSQL= ssql &" T.Status, T.PRIORITY, T.[Version Fix], n.noc"
sSQL= ssql &"FROM TSHIGHISSUES INNER JOIN noc ON T.BugIndex =
n.bugindex "
set rs=conn.Execute(ssql)

and this is the error message that I get Error Type:

Microsoft OLE DB Provider for SQL Server (0x80040E14)
Incorrect syntax near the keyword 'INNER'

I cannot find an example anywhere that helps with this situation. This works fine in SQL, but for some reason asp is being a pain.

View Replies View Related

Can't Get CDO Mail To Work

I copied ASP/VBScript code from several sources and adapted it to my page and variables. Here is my current code for implementing CDO:

View Replies View Related

Why Sub Procedure Does Not Work

I am trying to construct a sub procedure that concects to db , executes a stored procedure and returns a recordset. Connection to db and executing the stored procedure works fine.

The problem is that when I call the sub in the asp page to be executed the recordset is refused to be returned from the sub and the recordset itself does not appear to be constructed. or in another words the error displayed is: 'object required' --> refering to my recordset --> 'rs'

I do not know why, can any one tell me the reason, I tried much but with no result.
NOTE: For testing puropses I looped through the recordset isnide the sub itself and it worked fine Code:

View Replies View Related

Global.asa How Does It Work?

Is there somebody who can explain to me how I can use a Global.asa to store Functions and Variables in it? I understand that there are 4 events that can be used in a global.asa : Application_OnStart, Application_OnEnd, Session_OnStart, Session_OnEnd

But still i don't get how i can CALL functions of variables. Because with those 4 things they start all in the beginning or in the end of a session or application.

For example i use an encrypt function in different pages, can i just put it in de global.asa and call it when i need it?

View Replies View Related

ASP Not Work In W2003

I've just moved all asp file from IIS4/5 to IIS6(2003), but they don't work.It there any trick?

View Replies View Related

Work Week

I need to provide a pulldown with work weeks displayed.Is there any easy way to do this?

I would like to go 6 months from the current date and show a week as Oct. 11- 15.Which is Monday to Friday.

View Replies View Related

Validation Does Not Work

I have an asp page. In this there is a form when submit it have to chech if the fields are not emtpy.When it not empty it wil insert into a database an a mail.If a field is empty it send it anyway, it doens't do the validation. Here is a part of my code:Code:

<% if request("action") = "Verzenden" then
datum = request("dtmmeldinghelp")
if datum <>"" then
'I have tried also: if len(datum) <0 then
response.Write("<html>" & "<body>" & "Fout" & "</body>" & "</html>")
else
' here come my sql insert to code and the code for email
' this works fine
%>

View Replies View Related

Aspfunction Does Not Work

i built this test program:

<HTML>
<HEAD><TITLE>Test</TITLE></HEAD>
<BODY>
the time is <% = Time %>
</BODY>
</HTML>


It does not show the time! very basic probably but not for me.

View Replies View Related

Button Won't Work

I am trying to add a button to a menu which it's action is conditioned by a session variable. The button shows up fine but I get no action from the button being clicked . The variable does have a valid value. If anyone can help me out with this it would be greatly appreciated. The code follows:

<input TYPE="submit" NAME="Button1" VALUE="Quote Generator">

<SCRIPT LANGUAGE="VBScript" FOR="Button1" EVENT="onClick">
If Session("RVQuoteAuthority") = "Y" then
Response.Redirect(Quote.asp)
else
MsgBox "No Authority"
End If
</SCRIPT>

View Replies View Related

How CDONTS Work ??

Talking about the cdonts objects.. i want to send the email in windows xp..
i downloaded cdonts.dll and registered it.. but still i am not able to send
the mail.. is it so that i need to set the settings in the Virtual SMTP server
in IIS ?

View Replies View Related

Does GetObject Work With ASP?

I have not been working with ASP for too long at this time and am not real familiar with a lot of things about ASP. I have searched for articles on the following question but
not come up with any definite answers. Code:

View Replies View Related

Setting Up IIs To Work With Asp

I am trying to get ASP to work with IIS and i keep getting page cannot be displayed when i try to open asp pages? Do i have some settings wrong somewhere?

View Replies View Related

CDONTS Doesnt Work Always

I am using CDONTS to send mail to the user from my ASP application.
However, the code doenst works all the time. I am able to get mails but
nothing happnes most of the time. The code works maybe once in 20 tries.
What could be the reason?

View Replies View Related

How To Get Unicode Characters To Work In URL?

I have the following reference to an image in my web page. The name of the image is simply one Chinese character followed by .jpg.
<a HREF="transfer/rad0/﨨.jpg" TARGET="_blank">﨨.jpg</a>

The Chinese character is HTML encoded. I'm specifically setting UTF8 encoding w/codepage 65001 in each web page. When I right click this URL and attempt to download the image to disk, I get an error saying the web server can't locate the URL. In the error message, the Chinese character is displayed as ? (question mark). It works if the URL has only ASCII characters in it.

What do I need to do to be able to download images via URLs that contain Chinese (Unicode) characters?

View Replies View Related

Separate File Does Not Work.

i have this css file.

default.css


Code:
#navcontainer ul
{
margin: 0;
padding: 0;
list-style-type: none;
}


when i put both codes at 1 file, everything are ok, but when i separeted them into different files, nothing happened. what's wrong with the code?

View Replies View Related

If Else Statement Wont Work

i have this if endif condition but it doesn't seem to work

if date = "12-06-2007" then
response.write "its december 6"
else
response.write "its not december 6"
end if

and i try this also but its not working either

if day = "6" and month = "December" and year = "2007" then
response.write "its december 6"
else
response.write "its not december 6"
end if

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved