Jason Salas' WebLog

On-air and online: making people laugh, making people think, pissing people off

Sponsors

ASP.NET sites that kick ass

Pals with blogs

Podcasts I listen to

New-look MSNBC.com

MSNBC.com just revamped their site, and it's quite impressive, IMHO.  The URL redirects to http://msnbc.msn.com so I'm not sure if this is a step in a new direction, but it's cool nonetheless.

It's not a night-and-day change, but the most obvious modifications are new fonts (thank you for finally going away from Times New Roman - yuk!), and I think most of their apps are running ASP.NET, from what my friends over there tell me.   Someone on the inside indicated a few initial minor glitches that were quickly resolved, and I thought their layout was off initially, but that was my machine.

I had to modify the code I use to harvest headlines from them, and I know they've been burning the midnight oil lately getting the site migrated over.

Congrats on a job well done, MSNBC'ers!  :)

Posted: Dec 13 2003, 04:56 PM by guam-aspdev | with 7 comment(s)
Filed under:

Comments

Honey_BDynamo said:

Yeah, that MSNBC.com, what a crazy web site! Jason - thanks for your hard work. Keep keeping Guam informed!
-b
# December 13, 2003 2:01 AM

Jason Salas said:

Hi! Thanks for blogging with me! Where do I know you from...KUAM.COM? :)

I tried your link: http://photoalbums.wdwmagic.com/showgallery.php?cat=500&ppuser=9378&thumb=1 but it didn't work.
# December 13, 2003 2:04 AM

Robert McLaws said:

Definitely looks like ASP.NET. I think they're using HttpHandlers for the articles now, since I doubt each article resides in it's own directory. Pretty slick setup IMO.
# December 13, 2003 3:16 AM

Jason Salas said:

Yep...this seems to be a new trend...prettier URLs!

Either an HttpHandler or perhaps using RewritePath() in Application_BeginRequest in Global.asax.

ASPAlliance started doing the same thing with its articles recently (making IDs directory names) and I implemented something similar a few months back:

OLD:
http://www.kuam.com/news/story.asp?headline=1234

NEW:
http://www.kuam.com/news/1234.aspx
# December 13, 2003 3:43 AM

Shahn Hogan said:

Is there an example somewhere showing how to do this? Also can this be accomplished using ASP Classic too?
# December 13, 2003 7:53 PM

Jason Salas said:

Hi Shahn,

Here's a sample, borrowed from Steve Walther's seminal work "ASP.NET Unleashed", which runs in the Application_Request event of your web app's GLOBAL.ASAX file:

public void Application_BeginRequest(object sender, EventArgs e)
{
string currentPath;
string customPath;

currentPath = Request.Path.ToLower();
if(currentPath.IndexOf("/content/") > 0 && System.IO.Path.GetExtension(currentPath) == ".aspx")
{
// the request is within the /CONTENT/ directory, so re-write the URL to appear to be a filename, rather than a URL with a query string.
customPath = String.Format("/mysite/content/templatefile.aspx?headline={0}",System.IO.Path.GetFileNameWithoutExtension(Request.Path));
Context.RewritePath(customPath);
}
}
# December 14, 2003 2:10 AM

kenny8g7xz00 said:

<a href=http://www.hdmitovgaadapter.net> mini hdmi to vga adapter </a>

# July 22, 2011 10:07 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)