• ASP.NET, ASP.NET MVC

    Posted on July 1st, 2008

    Written by Emad Ibrahim

    Tags

    , ,

    ASP.NET MVC & Threads

    I have a method that handles sending of emails.  I wrote it so that it would run asynchronously, so that it won’t slow down the web app.  It looks like this: protected static void SendMail(string to, string subject, string body) { try { using (var bgw = new BackgroundWorker()) { bgw.DoWork += new DoWorkEventHandler(delegate { [...]

  • ASP.NET, ASP.NET MVC

    Posted on April 13th, 2008

    Written by Emad Ibrahim

    Tags

    , , , , , , ,

    CMAP Code Camp 2008 Spring Edition

    Yesterday, I gave a talk at CMAP Code Camp about the asp.net mvc framework and AJAX using JQuery. This is my first time speaking, so I was a little nervous. I think I did ok but I can’t really tell. Of course, the talk didn’t go as planned, because Visual Studio didn’t cooperate. Thankfully, I [...]

  • ASP.NET, ASP.NET MVC, Startup

    Posted on April 11th, 2008

    Written by Emad Ibrahim

    Tags

    , , , ,

    Yonkly – Open Source Twitter

    [update: Yonkly source code is now public] [update 2: I just created www.isweat.com using the yonkly engine] [update 3: Tons of new features] Asp.net MVC framework rocks. I wanted to play with it more and decided why not build an open source twitter. Unfortunately, I couldn’t come up with a better name for it that had [...]

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

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