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



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 "Customization"


Here's an ASP.NET version of our classic "Customization" script. It's basically a little more advanced version of our Colors sample.

To start with, I'm using some ASP.NET HTML Controls in this sample. I usually use the ASP.NET Web Controls, but since the controls don't do all that much (they basically just need to maintain their state) I decided to go this route this time to give you some exposure to alternate ways of doing things. The sample also does some cookie work for which I use a cookie with sub-keys instead of 5 separate cookies. The code's not all different, but it's there for you to take a look at if you want. Finally, you'll also notice that I've wrapped something I do 3 times into its own Sub. I couldn't come up with a good short name for it, although in all honesty I didn't really try that hard, so it's called FormatTextBasedOnFormValues.

Here's a zip file of the code (1.2 KB).

Play with the running version.

View the live source code.


Back to the "Customization" 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