|
Although this is just a tiny site, I built it with C# as if it were supporting
a large web site. The intent was to test the strengths and
weaknesses of ASP.NET.
For example, using the object-oriented capacity of ASP.NET in what is called
"page inheritance," I have given every page a common header, sidebar, and
footer via a common base page. Furthermore, the base page for all pages
on this site implements the Template Method Pattern to permit child pages to
override sidebar content if needed.
Finally, since there can be only one form per page, the base also provides a
server-side form that encompasses the page. This allows me to have
controls in the common sidebar (such as the paypal control) and still have
controls seen in the main window handled by child pages.
The buttons at the top of the page, like all content here, are generated by
code on the fly. Once generated, they are straight HTML with CSS support.
One down side to building with a large scale in mind, is that the drag and drop
interface of Visual Studio.NET has but limited use. Precisely where you'd
think you need the RAD capacity the most - is precisely where you can't use
it. But it is a limitation that I've learned to live with.
|