ASP 101 - Active Server Pages 101 - Web06
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





ASP.NET version of "Cookie"


This new method actually uses an object to handle the cookies. It makes things much neater and while it's a little different, I think you'll quickly see how much easier it is to deal with then the old way.

To keep it simple and not clutter the script up with form work, this sample plays with one fixed cookie name. If you want a version attached to a form let me know and I'll see what I can do, but this version does the cookie stuff and almost nothing else so you can get a feel for cookies by themselves. (For form stuff see our Form Handler Sample.)

Anyway... give it a whirl and let me know if this implementation gives you any trouble. Just don't call me if you're having any other ASP.NET problems... I'm still learning this stuff too!

Here's the zip file of the code (1.6 KB)!

Play with the running version.


Back to the "Cookie" sample


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers