Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object doesn't support this... with cookies

Status
Not open for further replies.

Smarty

Programmer
Apr 12, 2001
191
BE
While executing the following code:

if not (LangSelect = "EN") then
Response.Cookies("Lucronbioproducts")("StartLang") = "EN"
response.write (&quot;<BR><br><small>Your language selection has been set to English</small>&quot;)

I keep getting the following 500.100 error:

Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: '[object]'

Anyone knows what is wrong?
 
try this, I don't think the NOT condition is available in vbscript

if LangSelect <> &quot;EN&quot; then 'if not &quot;EN&quot; then
Response.Cookies(&quot;Lucronbioproducts&quot;)(&quot;StartLang&quot;) = &quot;EN&quot;
response.write (&quot;<BR><br><small>Your language selection has been set to English</small>&quot;)
I help at your own risk, if I brake it sorry! But if I fixed it, let me know with a
star.gif
[thumbsup2]
admin@onpntwebdesigns.com
 
That doesn't work either.
I guess I didn't tell you all of it... I missed the first 2 lines where I setted my LangSelect. This is the replacement. I guess the call of what is in the cookie is not correct:

if (Response.Cookies(&quot;Lucronbioproducts&quot;)(&quot;StartLang&quot;) <> &quot;EN&quot;) then
Response.Cookies(&quot;Lucronbioproducts&quot;)(&quot;StartLang&quot;) = &quot;EN&quot;
response.write (&quot;<BR><br><small>Your language selection has been set to English</small>&quot;)
end if

When I comment the If and end if line, everything works fine...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top