Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Looking for code sample

Reply
Thread Tools

Looking for code sample

 
 
vbMark
Guest
Posts: n/a
 
      10-11-2004
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!
 
Reply With Quote
 
 
 
 
Steven Burn
Guest
Posts: n/a
 
      10-11-2004
'// 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!



 
Reply With Quote
 
 
 
 
vbMark
Guest
Posts: n/a
 
      10-11-2004
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!

>
>
>


 
Reply With Quote
 
Steven Burn
Guest
Posts: n/a
 
      10-11-2004
Your welcome )

--

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!

> >
> >
> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for asp.net sample with vb.net backend sample is there one? Jake ASP .Net 0 02-09-2006 10:44 PM
Looking for client+server sample code (httplib and/or urlib) Philippe C. Martin Python 1 10-21-2005 01:05 PM
looking for sample code: writing file content to binary CJ C Programming 2 05-07-2004 12:08 PM
Looking for Win32OLE sample code (Tables in Word) Jim Freeze Ruby 0 01-27-2004 05:24 PM
Sample Code That Instruments Java Byte Code? CHANGE username to westes Java 1 10-14-2003 06:10 AM



Advertisments