I am working on an asp.net mvc application and I wanted to make the user’s main page (profile) be www.domain.com/username. This is a problem because the routing engine in MVC treats the first item after the domain as a controller. Ofcourse I could do a {*catchall} and do my own parsing but why re-invent the [...]
Entries from April 2008
Tricky Asp.net MVC URL Rewriting
April 10, 2008
Unit Test Linq to Sql in ASP.Net MVC with Moq
April 4, 2008
I have just spent the entire day playing with Moq to unit test an asp.net mvc application I am working with. All I wanted to do is test a “create” method that simply adds a record to the database. So here it goes.
1. I created a Mock Http context to be used by my controller. [...]
Geeks use Keyboard Shortcuts
April 2, 2008
If you are using the mouse to copy and paste then this site is not for you. And for Pete’s sake learn some shortcuts.
I have release the second version my keyboard shortcuts site that was featured on Microsoft’s Ajax showcase.
The site is now running on ASP.net 3.5 using all kind of neat features in the [...]
Posted in

content rss
