Articles : Page 1 of 63

  • July preview of POP Forums v9 for ASP.NET MVC3 posted to CodePlex

    July preview of POP Forums v9 for ASP.NET MVC3 posted to CodePlex

    Sep 10
    01

    Here it is, the third preview release of POP Forums v9. It's starting to smell like a real application now. New since the last release: Text parsing of HTML and "forum code" Dropped in TinyMCE text editor (still needs some customization and option for plain text) Security logging User profiled editing, for the users and admins, including avatar and photo uploads Admin pages for most of the forum settings, including category and forum management E-mail confirmation for new accounts, with ...


  • Cutting Edge: Better Web Forms with the MVP Pattern

    Cutting Edge: Better Web Forms with the MVP Pattern

    Aug 10
    31

    The Model-View-Presenter (MVP) pattern is an evolution of MVC. We take a look at implementing MVP for ASP.NET Web Forms and compare it to ASP.NET MVC and MVVM for Windows Presentation Foundation (WPF) and Silverlight. Dino Esposito MSDN Magazine September 2010...


  • Simple Dependency Injection using a Custom MVC Controller Factory

    Simple Dependency Injection using a Custom MVC Controller Factory

    Aug 10
    30

    Whenever I develop an MVC application there is always some degree of data access required. As a best practice, I usually define a interface that my repository objects will adhere to. Creating an interface is generally a requirement for Dependency Injection (DI). DI is a very important pattern if you plan on doing any unit testing later on. For the purpose of this demo, I am going to keep things simple and only create a fake repository. Here is the code: public interface IRepository { Person ...


  • POP Forums v9 preview is going to be a little late

    POP Forums v9 preview is going to be a little late

    Aug 10
    30

    I mentioned with the July preview of POP Forums v9 that there would be an August preview. There will be, but I'm not sure it'll hit in August. It's really starting to feel like an actual app now, and I'm very excited to see it coming along. Unfortunately, I haven't found enough time lately to deliver the things I said would be in this preview. Being a new dad can be like that! On the up side, it is running on MVC3. On the down side, it's running on MVC3, and that's a moving target until it go...


  • August 29th Links: .NET, ASP.NET, IIS Express, Silverlight, Windows Phone 7

    August 29th Links: .NET, ASP.NET, IIS Express, Silverlight, Windows Phone 7

    Aug 10
    30

    Here is the latest in my link-listing series. Also check out my VS 2010 and .NET 4 series and ASP.NET MVC 2 series for other on-going blog series I’m working on. [In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu] .NET/WPF/EF 5 Little C#/.NET Wonders that Make Code Better: Nice blog post from James that highlights 5 nice language/framework tips you can take advantage of within your apps. I’m betting a lot of peopl...


  • A quick primer on .NET web frameworks

    A quick primer on .NET web frameworks

    Aug 10
    25

    I’ve received quite a few questions in the past months and year about web frameworks for .NET (some confusion around the difference between WebForms, ASP.NET MVC, FubuMVC, ASP.NET in general, etc). So I thought I’d make a quick blog post giving some real basic explanations of these frameworks, what the intended audience is for each, and what the strengths and weaknesses are of each. Note: This is not an exhaustive list. It does not include all the frameworks that are out there. There are man...


  • An effective testing strategy

    An effective testing strategy

    Aug 10
    25

    On a recent large project, we had a goal early on that we didn’t want to have a lot of QA folks manually testing our software. Finding bugs through manual testing is incredibly time consuming and expensive, so we opted to try and build as much quality in to the product. That’s not to say that manual testing doesn’t have its place, as humans are fantastic about using software in ways you didn’t expect. This was a long project, around 18 months, and will continue to have active development in ...


  • What is the difference in <%: variable%> and <%= variable%> in ASP.NET MVC?

    What is the difference in <%: variable%> and <%= variable%> in ASP.NET MVC?

    Aug 10
    23

    With many folks adopting ASP.NET MVC as well as Visual Studio 2010, there is a fairly confusing change if you are one of those people who doesn’t engage in the alpha and beta phases of new product releases from Microsoft or any other vendor, for that matter. The issue of <%: vs. <%= has had a great deal of discussion around it in the years leading up to the Visual Studio 2010 release. This new expression syntax, or code nugget, is a new feature of ASP.NET 4. It applies equally to ASP.NET Web...


  • ServiceLocator in ASP.NET MVC 3 – Part 2

    ServiceLocator in ASP.NET MVC 3 – Part 2

    Aug 10
    21

    In my earlier post I had discussed about the Common Service Locator framework (IServiceLocator interface)and how we can implement an adapter for the StructureMap container.In this post we will take look into how the new ASP.NET MVC provides support to plug in this ServiceLocator. The new framework supports an interface System.Web.Mvc.IMvcServiceLocator which is defined as: [...]...


  • T4MVC generate lower case paths

    T4MVC generate lower case paths

    Aug 10
    19

    I noticed that my URL paths that are being generated using using T4MVC's excellent MVC templating were coming out in title case. This is a problem since we try to keep all URLs lower case since Google deems URL in different cases showing the same result as duplicate content. I looked through a lot of the code that is generated by the tool and traced the problem all the way to the MyController.generated.cs file: public class ActionNamesClass { public readonly string Index = "Index"; public re...