Posts
Published 24 September 2010
in archive
with tags
aspnetwebforms
,
printing
So, as in my previous post, I had an awesome idea of how to detect people printing a page of a website. Basically, when they go to print from our site, they get a different layout, that doesn't have anything that looks like a site. So surely if I just put a little tracker file in between the CSS file and the request, that'd work like a charm, right?
Continue reading …
Published 24 September 2010
in archive
with tags
csharp
,
aspnetwebforms
Whether you want a separate sheet for each browser, or you want to track when people print a page from your site (as is my case), how do you get code to run in a CSS file? You can't. How do you get an ASPX file to serve up CSS? Well, you can't. But like House MD, I have the answer and I'll tell you eventually.
Continue reading …
Published 21 September 2010
in archive
with tags
abstract
,
abstractclass
,
csharp
Blogular activity has suffered a little here; but setting up a workshop and devising plans to build steam engine in said workshop will do that to you. Today some simple code, written to simplify showing abstract classes. Every tutorial I see they throw in stupid code that isn't really needed to show the primal functionality of abstract classes. So here is an example that has nothing more than what it needs.
Continue reading …
Published 15 September 2010
in archive
with tags
sql
More SQL again today, to say I'm not a fan, I'm doing a lot of it lately.
Continue reading …
Published 12 September 2010
in archive
with tags
sql
So here I am, coding my own business, being a law abiding coder, when out of the blue comes a rather bothersome little problem which really did one on me. I had laid out an awesome plan for my awesome top secret project, a truly awesomely smart database design with relationships to link a rows in a table to rows in the exact same table, one way relationships from A->B. All I needed was a way to cascade them on delete, in other words, make sure when a row is deleted, every relationship (in the relationship table) is deleted along with it.
Continue reading …