• ASP.NET, ASP.NET MVC

    Posted on April 10th, 2008

    Written by Emad Ibrahim

    Tags

    , , , , ,

    Tricky Asp.net MVC URL Rewriting

    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 [...]

  • ASP.NET, ASP.NET MVC, Testing

    Posted on April 4th, 2008

    Written by Emad Ibrahim

    Tags

    , , , , , , , ,

    Unit Test Linq to Sql in ASP.Net MVC with Moq

    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 [...]

  • ASP.NET, Programming

    Posted on March 31st, 2008

    Written by Emad Ibrahim

    Tags

    , , , , , ,

    Ajax with ASP.NET MVC Framework Preview 2

    This is the updated version of the Nikhil’s excellent example on how to use Ajax with ASP.net MVC. I commented all the changes made in the code and prefixed them with //emad. So just search for //emad and you will see all the changes I made… Here is a quick list of the changes I [...]

  • Newer Posts Yeah! There are more posts, check them out.