house plans
HAPPY SPRING! We are offering Free Ground Shipping.
Home >> Technology >> Article
Search entire site
DREAM. LEARN. DISCOVER... GET STARTED.
Technology
Technology
Why Asp.net Sucks (Tonight)
Tags : , ,
Published On : 02-01-2008
Author : Steve Donegan
3012 Views

I have noticed a slight slow down on a few of the pages on the website so I figured that it was time to get in there and turn on some caching. Asp.net, the technology we use, is supposed to make this very simple. All you have to do is something like this:

<%@ OutputCache Duration="600" VaryByParam="none" %>

Then magic happens and your page is magically stored in memory and millions of people can view it at the same time. The problem is that every page on The Plan Collection contains a login control. It is the little piece of code in the upper right. If you turn on caching guess what happens. The first person to login and view a page gets their user account broadcast to everyone else that sees that page. That's right the designers of the LoginView Asp.net control were so short sighted that they didn't realize that that control should NEVER be cached.

There are other problems with caching in asp.net as well including a lovely problem with the varybycustom parameter when you do cross page posting. The fun part of that is that if you set the parameter in page one then post to page two where a second varybycustom parameter is set the framework coughs, sputters and throws an exception letting you know that the parameter has already been set. How about this guys. Instead of throwing an exception vary by two parameters?

Don't worry this code never made it to production. I am once again going to go in and deal with the caching programatically so that site will get a boost. However, it is frustrating when 'enterprise' frameworks like asp.net fail you in terrible ways. Come on guys even though you are Microsoft and the world is accustomed to being let down by you, you can do better.

COMMENTS
RELATED ARTICLES
Why Asp.net Sucks (Tonight)
Technology
HOUSE PLANS 101
FAQ
Glossary of Terms
Understanding Blueprints
Understanding Copyright
What's included in a set of house plans?
Why pre-drawn house plans?
MOST POPULAR ARTICLES
Plans with Indoor Basketball Courts
House Plans
Garage Plans with Shops, Mother In-Law Suites, Apartments and Bonus Square Footage
House Plans
Building a home plan with an indoor basketball court
House Plans
1. Building on slab vs. crawl space vs. basement? Advantages / disadvantage
House Plans
Luxurious Mountain Craftsman House Plans
House Plans
The In-Law Suite Revolution
House Plans
The Finest Duplex, Town House, and Multi Unit Home Plans
House Plans
Florida and California House Plans With a Tuscan Style
House Plans
Beachfront, Coastal and Key West Home Plans
House Plans
Country Porches and Beautiful Farmhouses
House Plans
ARTICLES BY TOPIC
A Home Builders Opinion Air Conditioning Tips Architecture Beachfront Houseplans building lots bungalow Cape Cod House Plans Color Photos Color Schemes Contemporary Style country house plans craftsman house plans Curb Appeal Custom vs Stock House Plans Customer Service Design Do-It-Yourself Door Hardware Door knobs Doorknobs Dream Homes Engineering House Plans european house plans Exterior Materials Extreme Makeover Feng Shui Floorplan Layout Frank Lloyd Wright French Country Home Design Garage Plans Garages green design Home Builders Home Designers Home plans Homebuilding activity homeplans house plan styles house plans House Plans with Photos Housing Market Indoor Gyms in-law suites Jake England Landscaping Log Cabins luxury home plans Luxury House Plans Mediterranean Homeplans
RECENT ARTICLES
Landscape Architecture: Influences and Trends in Whole House Design
House Plans
Thomas Jefferson: The Architect and The Landscape Artist
House Plans
Luxury House Plans from The Plan Collection Featured in Wall Street Journal
House Plans
Great Women in Architecture: Hearst Castle's Julia Morgan
House Plans
TPC Salutes Great Women Architects: Anna Keichline
House Plans
Profiles in Architecture & Design: African American Architects Who Changed Our World
House Plans
The Plan Collection Announces the Best Price Guarantee in the House Plans Industry
House Plans
Architecture and the Presidents: Abraham Lincoln
House Plans
Great 4 bedroom house plan for growing families
House Plans
Developing a Budget to Build Your House Plan
Business
© 2013 The Plan Collection, LLC