ASP cookies problem

Discussion in 'ASP General' started by patbaudy, May 16, 2005.

  1. patbaudy

    patbaudy Guest

    I'm trying to create cookies on the fly with ASP.
    Here is what I'm doing:

    ------------------
    Dim OrderSetNumber, combo

    OrderSetNumber = request.Form("orderNum")
    combo = request.Form("comboType")

    response.Cookies("order")(CStr(OrderSetNumber))("combo") = combo


    -----------------

    When I run the code, the following error occurs:

    "Microsoft VBScript runtime error '800a01b6'

    Object doesn't support this property or method: '[object]' "

    Can someone help?
    Is it possible to create cookies on the fly with asp?
    Also, is it possible to create variable on the fly too?

    Best regards,

    Pat
     
    patbaudy, May 16, 2005
    #1
    1. Advertisements

  2. patbaudy

    Evertjan. Guest

    patbaudy wrote on 16 mei 2005 in microsoft.public.inetserver.asp.general:

    > response.Cookies("order")(CStr(OrderSetNumber))("combo") = combo
    >



    response.Cookies(a)(b)(c) is not defined

    response.Cookies(a)(b) is.


    <http://www.4guysfromrolla.com/webtech/110299-1.shtml>

    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)
     
    Evertjan., May 16, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Nitulescu

    Response.Cookies vs Request.Cookies

    Alex Nitulescu, Feb 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    9,383
    Hans Kesting
    Feb 3, 2005
  2. Andy Fish
    Replies:
    3
    Views:
    6,863
    Fredrik Lindner
    Nov 6, 2003
  3. user
    Replies:
    3
    Views:
    847
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Mar 31, 2007
  4. archana
    Replies:
    1
    Views:
    645
  5. mhshpk
    Replies:
    0
    Views:
    765
    mhshpk
    Jul 18, 2007
  6. Eric
    Replies:
    1
    Views:
    2,353
    Mark Fitzpatrick
    Dec 28, 2007
  7. _Who
    Replies:
    7
    Views:
    3,151
  8. Cal Who

    Response.cookies vs Request.cookies

    Cal Who, Dec 5, 2009, in forum: ASP .Net
    Replies:
    7
    Views:
    1,833
    Gregory A. Beamer
    Dec 10, 2009
Loading...