Posts
810
Comments
670
Trackbacks
1
Saturday, January 21, 2012
Fix: Getting rid of weird Asp.Net MVC 3 “?area=” links

This is potentially a fix without a problem, but…

Using syntax like this (I’m using T4MVC here):

@Html.ActionLink("Home", MVC.Home.Index())

I expect to have the link rendered as:

http://localhost/

Yet, sometimes, it would render as:

http://localhost/?area=

WTF?  What’s with that?  There is (AFAIKT) no functional difference between them, but I found it annoying.

My google-fu failed me for quite a while until I saw a random comment in some post and found that if I used this syntax:

<a href="@Url.Action("Index", "Home")">Home</a>

I always got the right rendered link.

Why?  I don’t know.  I feel like I should know.  I thought it might have to do with RenderPartial vs. something else, but that didn’t seem to be it.   I’m tempted to say it is due to T4MVC, but don’t know why it would be specifically.

Anyway, just a note to myself that, if I’m feeling anal about links, this gets rid of the issue.

posted @ Sunday, January 22, 2012 12:27 AM | Feedback (1)
Guilty Musical Pleasure : Colbie Caillat – Fallin’ for You

I like Colbie Caillat’s music.  There I’ve said it.

I realize that I’m not her target demographic.  I also realize this is somewhat disturbing, if not downright creepy.  But dammit, I can’t help it.

There is a particular cognitive dissonance when the shuffle play on my Zune pairs this with, say, King Crimson, but what can you do.

I've been spending all my..time
Just thinking about ya
I don't know what to do
I think I'm fallin' for you

I've been waiting all my.. life
and now i found ya
I dont know what to do
I think I'm falling for you...
I'm falling for you...

So, here in a sound check for her world famous Walmart tour, displaying incredible guitar chops…Enjoy.

Or not.

posted @ Saturday, January 21, 2012 10:47 PM | Feedback (0)