Asp.Net MVC: Support both static and dynamic views

Lets try this again... the first time I wrote this post, my computer restarted and I lost it entirely :( I have created a handful of sites that require both "static" pages and dynamic pages. I put static in quotes because there is a dedicated page with unique content that can't be created with...

Continue reading →

Vino 100

Over the weekend, I had the pleasure of going to Vino 100 . It's a small wine shop in Wauwatosa, WI (they also have one in the 3rd Ward). I should begin with a bit of background on my wine knowledge, though.. While I'm not a huge wine drinker, I do enjoy a glass now and then. Half priced wino wednesdays...

Continue reading →

Updated SubSonic 3 Templates (Version 1)

As I mentioned in my previous post , I am playing around with SubSonic 3 . While the templates that come with it are a good starting point, I made some changes to make things feel a little more like the SubSonic I know and love... You can download my updated SubSonic templates here . What have I changed...

Continue reading →

Visual Studio Website Project: Add context menu for T4 files

Hey all, I was excited to get going with SubSonic 3 , but soon realized that website projects do not support T4 files (Text Template Transformation Toolkit). I found that there is a command-line tool that you can use to generate the output, but I wanted something even easier. So I set out to create a...

Continue reading →

New website: DMBStream.com

Those who know me, probably know that I enjoy listening to Dave Matthews. Over the weekend, I built a site that allows me to listen to some live shows wherever I may be. It's nice to not have to lug around a usb drive full of music. The site is http://dmbstream.com with a main purpose of allowing you...

Continue reading →

Disqus comments

Though it's a trend with some bloggers right now, I decided to pass on setting up Disqus comments with this blog, for now. I really like the idea and implementation, but my concerns are what swayed me from installing it: The comments are not stored with my blog When disqus.com goes down, I lose comments...

Continue reading →

Create and delete cookies in an iframe with IE

Internet Explorer shines yet again... I had to write a login sync for two sites (Single sign-on). So that you can log into one site and (behind the scenes) get logged into the other site. I chose to do this with iframes and all was happy. Until I had to verify that it worked in IE. IE chooses to dismiss...

Continue reading →

BinaryResult for Asp.Net MVC

I was working with the latest drop of the asp.net mvc framework and had a need to stream a pdf back to the user... A quick glance around the System.Web.Mvc namespace only yielded ContentResult. While that's cool for string content, I needed something more flexible for binary data. So I wrote the BinaryResult...

Continue reading →

Complex SQL conditional statements with SubSonic 2.1

Have you needed to do a complex where clause with a query, but didn't want to write raw SQL? That's where SubSonic expression constraints come in handy. Say you want to do something like: select * from Product where IsActive = 1 and (ExpiredOn is null OR ExpiredOn <= '01/01/2020') Using SubSonic 2...

Continue reading →

Archiving CMS type data using SubSonic

Rob Conery asked that we share some of the things that we've done with the new Subsonic , in celebration of its 2.1 release . I've been using various svn versions of Subsonic for some time now, and feel that I have a decent grasp of its new features. One thing that seems to keep coming up is the need...

Continue reading →