I'm having real problems with an ASP page that sets a User's preferences on an app I wrote about a year ago. It worked OK then but for some strange reason it doesn't now!
The code, which is at the top of an ASP page and before the HTML tags, is as follows:
<%@ Language=JavaScript %>
<%
// Set Cookie expiry date...
var nextyear = new Date();
nextyear.setFullYear(nextyear.getFullYear() + 1);
Response.Cookies("KeySettings").Expires = nextyear.toLocaleDateString();
It then goes on to set various keys, although even this doesn't work now - even if I comment out the bit above!
Instead I get the message:
Error Type:
Microsoft JScript runtime (0x800A000D)
Type mismatch
/SetUserSettings.asp, line 7
By the way, Line 7 is the line:
Response.Cookies("KeySettings").Expires = nextyear.toLocaleDateString();
I then have to close the page manually.
I'm developing this using InterDev and IIS 5.0.
Any help would be appreciated. Many thanks.
The code, which is at the top of an ASP page and before the HTML tags, is as follows:
<%@ Language=JavaScript %>
<%
// Set Cookie expiry date...
var nextyear = new Date();
nextyear.setFullYear(nextyear.getFullYear() + 1);
Response.Cookies("KeySettings").Expires = nextyear.toLocaleDateString();
It then goes on to set various keys, although even this doesn't work now - even if I comment out the bit above!
Instead I get the message:
Error Type:
Microsoft JScript runtime (0x800A000D)
Type mismatch
/SetUserSettings.asp, line 7
By the way, Line 7 is the line:
Response.Cookies("KeySettings").Expires = nextyear.toLocaleDateString();
I then have to close the page manually.
I'm developing this using InterDev and IIS 5.0.
Any help would be appreciated. Many thanks.