Looking for code sample

Discussion in 'ASP General' started by vbMark, Oct 11, 2004.

  1. vbMark

    vbMark Guest

    What I want to do is this:

    When the user submits the form his selections in the dropdown boxes will be
    saved in a cookie.

    When he loads the page again the value saved in the cookie will be
    reflected in the dropdown boxes.

    I know how to do cookies but don't know how to reference controls. Can
    someone point me to or show me an example?

    Thanks!
     
    vbMark, Oct 11, 2004
    #1
    1. Advertising

  2. vbMark

    Steven Burn Guest

    '// Assumes your select box is named "selValue"

    '// If using the POST method
    Request.Form("selValue")

    '// If using the GET method
    Request.QueryString("selValue")

    --

    Regards

    Steven Burn
    Ur I.T. Mate Group
    www.it-mate.co.uk

    Keeping it FREE!


    "vbMark" <> wrote in message
    news:Xns957F8DB269F4Cnoemailcom@130.133.1.4...
    > What I want to do is this:
    >
    > When the user submits the form his selections in the dropdown boxes will

    be
    > saved in a cookie.
    >
    > When he loads the page again the value saved in the cookie will be
    > reflected in the dropdown boxes.
    >
    > I know how to do cookies but don't know how to reference controls. Can
    > someone point me to or show me an example?
    >
    > Thanks!
     
    Steven Burn, Oct 11, 2004
    #2
    1. Advertising

  3. vbMark

    vbMark Guest

    Works great! Thanks.

    "Steven Burn" <> wrote in
    news::

    > '// Assumes your select box is named "selValue"
    >
    > '// If using the POST method
    > Request.Form("selValue")
    >
    > '// If using the GET method
    > Request.QueryString("selValue")
    >
    > --
    >
    > Regards
    >
    > Steven Burn
    > Ur I.T. Mate Group
    > www.it-mate.co.uk
    >
    > Keeping it FREE!
    >
    >
    > "vbMark" <> wrote in message
    > news:Xns957F8DB269F4Cnoemailcom@130.133.1.4...
    >> What I want to do is this:
    >>
    >> When the user submits the form his selections in the dropdown boxes
    >> will

    > be
    >> saved in a cookie.
    >>
    >> When he loads the page again the value saved in the cookie will be
    >> reflected in the dropdown boxes.
    >>
    >> I know how to do cookies but don't know how to reference controls.
    >> Can someone point me to or show me an example?
    >>
    >> Thanks!

    >
    >
    >
     
    vbMark, Oct 11, 2004
    #3
  4. vbMark

    Steven Burn Guest

    Your welcome :eek:)

    --

    Regards

    Steven Burn
    Ur I.T. Mate Group
    www.it-mate.co.uk

    Keeping it FREE!


    "vbMark" <> wrote in message
    news:Xns957F9C47AABA8noemailcom@130.133.1.4...
    > Works great! Thanks.
    >
    > "Steven Burn" <> wrote in
    > news::
    >
    > > '// Assumes your select box is named "selValue"
    > >
    > > '// If using the POST method
    > > Request.Form("selValue")
    > >
    > > '// If using the GET method
    > > Request.QueryString("selValue")
    > >
    > > --
    > >
    > > Regards
    > >
    > > Steven Burn
    > > Ur I.T. Mate Group
    > > www.it-mate.co.uk
    > >
    > > Keeping it FREE!
    > >
    > >
    > > "vbMark" <> wrote in message
    > > news:Xns957F8DB269F4Cnoemailcom@130.133.1.4...
    > >> What I want to do is this:
    > >>
    > >> When the user submits the form his selections in the dropdown boxes
    > >> will

    > > be
    > >> saved in a cookie.
    > >>
    > >> When he loads the page again the value saved in the cookie will be
    > >> reflected in the dropdown boxes.
    > >>
    > >> I know how to do cookies but don't know how to reference controls.
    > >> Can someone point me to or show me an example?
    > >>
    > >> Thanks!

    > >
    > >
    > >

    >
     
    Steven Burn, Oct 11, 2004
    #4
    1. Advertising

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. Jake
    Replies:
    0
    Views:
    566
  2. Tim Chase
    Replies:
    0
    Views:
    80
    Tim Chase
    Feb 16, 2014
  3. Terry Reedy
    Replies:
    0
    Views:
    85
    Terry Reedy
    Feb 16, 2014
  4. Tim Chase
    Replies:
    0
    Views:
    90
    Tim Chase
    Feb 16, 2014
  5. Ned Batchelder
    Replies:
    0
    Views:
    86
    Ned Batchelder
    Feb 16, 2014
Loading...

Share This Page